home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / New System Software Extensions / QuickDraw™ GX v1.0ß2 / Documents / QuickDraw GX Docs (Inside Mac) / Getting Started < prev    next >
MacBinary  |  1993-08-27  |  1.0 MB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Wed Aug 25 10:13:27 1993, modified Fri Aug 27 09:28:08 1993, creator 'HLX2', type 'ONLN', 1050005 bytes "Getting Started " , at 0x100615 14838 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 10 47 65 74 74 69 6e | 67 20 53 74 61 72 74 65 |..Gettin|g Starte|
|00000010| 64 20 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |d ......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 10 05 95 00 | 00 39 f6 a8 a1 24 07 a8 |........|.9...$..|
|00000060| a3 bc 68 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..h.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 f5 24 00 00 |........|.....$..|
|00000080| 49 4e 53 49 44 45 20 4d | 41 43 49 4e 54 4f 53 48 |INSIDE M|ACINTOSH|
|00000090| 0d 0d 47 65 74 74 69 6e | 67 20 53 74 61 72 74 65 |..Gettin|g Starte|
|000000a0| 64 20 57 69 74 68 0d 51 | 75 69 63 6b 44 72 61 77 |d With.Q|uickDraw|
|000000b0| 20 47 58 0d f0 09 41 70 | 70 6c 65 20 43 6f 6d 70 | GX...Ap|ple Comp|
|000000c0| 75 74 65 72 2c 20 49 6e | 63 2e 0d a9 20 31 39 39 |uter, In|c... 199|
|000000d0| 33 2c 20 41 70 70 6c 65 | 20 43 6f 6d 70 75 74 65 |3, Apple| Compute|
|000000e0| 72 2c 20 49 6e 63 2e 0d | 41 6c 6c 20 72 69 67 68 |r, Inc..|All righ|
|000000f0| 74 73 20 72 65 73 65 72 | 76 65 64 2e 20 0d 4e 6f |ts reser|ved. .No|
|00000100| 20 70 61 72 74 20 6f 66 | 20 74 68 69 73 20 70 75 | part of| this pu|
|00000110| 62 6c 69 63 61 74 69 6f | 6e 20 6d 61 79 20 62 65 |blicatio|n may be|
|00000120| 20 72 65 70 72 6f 64 75 | 63 65 64 2c 20 73 74 6f | reprodu|ced, sto|
|00000130| 72 65 64 20 69 6e 20 61 | 20 72 65 74 72 69 65 76 |red in a| retriev|
|00000140| 61 6c 20 73 79 73 74 65 | 6d 2c 20 6f 72 20 74 72 |al syste|m, or tr|
|00000150| 61 6e 73 6d 69 74 74 65 | 64 2c 20 69 6e 20 61 6e |ansmitte|d, in an|
|00000160| 79 20 66 6f 72 6d 20 6f | 72 20 62 79 20 61 6e 79 |y form o|r by any|
|00000170| 20 6d 65 61 6e 73 2c 20 | 6d 65 63 68 61 6e 69 63 | means, |mechanic|
|00000180| 61 6c 2c 20 65 6c 65 63 | 74 72 6f 6e 69 63 2c 20 |al, elec|tronic, |
|00000190| 70 68 6f 74 6f 63 6f 70 | 79 69 6e 67 2c 20 72 65 |photocop|ying, re|
|000001a0| 63 6f 72 64 69 6e 67 2c | 20 6f 72 20 6f 74 68 65 |cording,| or othe|
|000001b0| 72 77 69 73 65 2c 20 77 | 69 74 68 6f 75 74 20 70 |rwise, w|ithout p|
|000001c0| 72 69 6f 72 20 77 72 69 | 74 74 65 6e 20 70 65 72 |rior wri|tten per|
|000001d0| 6d 69 73 73 69 6f 6e 20 | 6f 66 20 41 70 70 6c 65 |mission |of Apple|
|000001e0| 20 43 6f 6d 70 75 74 65 | 72 2c 20 49 6e 63 2e 20 | Compute|r, Inc. |
|000001f0| 50 72 69 6e 74 65 64 20 | 69 6e 20 74 68 65 20 55 |Printed |in the U|
|00000200| 6e 69 74 65 64 20 53 74 | 61 74 65 73 20 6f 66 20 |nited St|ates of |
|00000210| 41 6d 65 72 69 63 61 2e | 0d 4e 6f 20 6c 69 63 65 |America.|.No lice|
|00000220| 6e 73 65 73 2c 20 65 78 | 70 72 65 73 73 20 6f 72 |nses, ex|press or|
|00000230| 20 69 6d 70 6c 69 65 64 | 2c 20 61 72 65 20 67 72 | implied|, are gr|
|00000240| 61 6e 74 65 64 20 77 69 | 74 68 20 72 65 73 70 65 |anted wi|th respe|
|00000250| 63 74 20 74 6f 20 61 6e | 79 20 6f 66 20 74 68 65 |ct to an|y of the|
|00000260| 20 74 65 63 68 6e 6f 6c | 6f 67 79 20 64 65 73 63 | technol|ogy desc|
|00000270| 72 69 62 65 64 20 69 6e | 20 74 68 69 73 20 62 6f |ribed in| this bo|
|00000280| 6f 6b 2e 20 41 70 70 6c | 65 20 72 65 74 61 69 6e |ok. Appl|e retain|
|00000290| 73 20 61 6c 6c 20 69 6e | 74 65 6c 6c 65 63 74 75 |s all in|tellectu|
|000002a0| 61 6c 20 70 72 6f 70 65 | 72 74 79 20 72 69 67 68 |al prope|rty righ|
|000002b0| 74 73 20 61 73 73 6f 63 | 69 61 74 65 64 20 77 69 |ts assoc|iated wi|
|000002c0| 74 68 20 74 68 65 20 74 | 65 63 68 6e 6f 6c 6f 67 |th the t|echnolog|
|000002d0| 79 20 64 65 73 63 72 69 | 62 65 64 20 69 6e 20 74 |y descri|bed in t|
|000002e0| 68 69 73 20 62 6f 6f 6b | 2e 20 54 68 69 73 20 62 |his book|. This b|
|000002f0| 6f 6f 6b 20 69 73 20 69 | 6e 74 65 6e 64 65 64 20 |ook is i|ntended |
|00000300| 74 6f 20 61 73 73 69 73 | 74 20 61 70 70 6c 69 63 |to assis|t applic|
|00000310| 61 74 69 6f 6e 20 64 65 | 76 65 6c 6f 70 65 72 73 |ation de|velopers|
|00000320| 20 74 6f 20 64 65 76 65 | 6c 6f 70 20 61 70 70 6c | to deve|lop appl|
|00000330| 69 63 61 74 69 6f 6e 73 | 20 6f 6e 6c 79 20 66 6f |ications| only fo|
|00000340| 72 20 41 70 70 6c 65 20 | 4d 61 63 69 6e 74 6f 73 |r Apple |Macintos|
|00000350| 68 20 63 6f 6d 70 75 74 | 65 72 73 2e 0d 41 70 70 |h comput|ers..App|
|00000360| 6c 65 20 43 6f 6d 70 75 | 74 65 72 2c 20 49 6e 63 |le Compu|ter, Inc|
|00000370| 2e 0d 32 30 35 32 35 20 | 4d 61 72 69 61 6e 69 20 |..20525 |Mariani |
|00000380| 41 76 65 6e 75 65 0d 43 | 75 70 65 72 74 69 6e 6f |Avenue.C|upertino|
|00000390| 2c 20 43 41 20 39 35 30 | 31 34 0d 34 30 38 2d 39 |, CA 950|14.408-9|
|000003a0| 39 36 2d 31 30 31 30 0d | 41 70 70 6c 65 2c 20 74 |96-1010.|Apple, t|
|000003b0| 68 65 20 41 70 70 6c 65 | 20 6c 6f 67 6f 2c 20 4c |he Apple| logo, L|
|000003c0| 61 73 65 72 57 72 69 74 | 65 72 2c 20 61 6e 64 20 |aserWrit|er, and |
|000003d0| 4d 61 63 69 6e 74 6f 73 | 68 20 61 72 65 20 74 72 |Macintos|h are tr|
|000003e0| 61 64 65 6d 61 72 6b 73 | 20 6f 66 20 41 70 70 6c |ademarks| of Appl|
|000003f0| 65 20 43 6f 6d 70 75 74 | 65 72 2c 20 49 6e 63 2e |e Comput|er, Inc.|
|00000400| 2c 20 72 65 67 69 73 74 | 65 72 65 64 20 69 6e 20 |, regist|ered in |
|00000410| 74 68 65 20 55 6e 69 74 | 65 64 20 53 74 61 74 65 |the Unit|ed State|
|00000420| 73 20 61 6e 64 20 6f 74 | 68 65 72 20 63 6f 75 6e |s and ot|her coun|
|00000430| 74 72 69 65 73 2e 0d 41 | 64 6f 62 65 20 49 6c 6c |tries..A|dobe Ill|
|00000440| 75 73 74 72 61 74 6f 72 | 20 61 6e 64 20 50 6f 73 |ustrator| and Pos|
|00000450| 74 53 63 72 69 70 74 20 | 61 72 65 20 74 72 61 64 |tScript |are trad|
|00000460| 65 6d 61 72 6b 73 20 6f | 66 20 41 64 6f 62 65 20 |emarks o|f Adobe |
|00000470| 53 79 73 74 65 6d 73 20 | 49 6e 63 6f 72 70 6f 72 |Systems |Incorpor|
|00000480| 61 74 65 64 2c 20 77 68 | 69 63 68 20 6d 61 79 20 |ated, wh|ich may |
|00000490| 62 65 20 72 65 67 69 73 | 74 65 72 65 64 20 69 6e |be regis|tered in|
|000004a0| 20 63 65 72 74 61 69 6e | 20 6a 75 72 69 73 64 69 | certain| jurisdi|
|000004b0| 63 74 69 6f 6e 73 2e 0d | 41 47 46 41 20 69 73 20 |ctions..|AGFA is |
|000004c0| 61 20 74 72 61 64 65 6d | 61 72 6b 20 6f 66 20 41 |a tradem|ark of A|
|000004d0| 67 66 61 2d 47 65 76 61 | 65 72 74 2e 0d 46 72 61 |gfa-Geva|ert..Fra|
|000004e0| 6d 65 4d 61 6b 65 72 20 | 69 73 20 61 20 72 65 67 |meMaker |is a reg|
|000004f0| 69 73 74 65 72 65 64 20 | 74 72 61 64 65 6d 61 72 |istered |trademar|
|00000500| 6b 20 6f 66 20 46 72 61 | 6d 65 20 54 65 63 68 6e |k of Fra|me Techn|
|00000510| 6f 6c 6f 67 79 20 43 6f | 72 70 6f 72 61 74 69 6f |ology Co|rporatio|
|00000520| 6e 2e 0d 48 65 6c 76 65 | 74 69 63 61 20 61 6e 64 |n..Helve|tica and|
|00000530| 20 50 61 6c 61 74 69 6e | 6f 20 61 72 65 20 72 65 | Palatin|o are re|
|00000540| 67 69 73 74 65 72 65 64 | 20 74 72 61 64 65 6d 61 |gistered| tradema|
|00000550| 72 6b 73 20 6f 66 20 4c | 69 6e 6f 74 79 70 65 20 |rks of L|inotype |
|00000560| 43 6f 6d 70 61 6e 79 2e | 0d 49 54 43 20 5a 61 70 |Company.|.ITC Zap|
|00000570| 66 20 44 69 6e 67 62 61 | 74 73 20 69 73 20 61 20 |f Dingba|ts is a |
|00000580| 72 65 67 69 73 74 65 72 | 65 64 20 74 72 61 64 65 |register|ed trade|
|00000590| 6d 61 72 6b 20 6f 66 20 | 49 6e 74 65 72 6e 61 74 |mark of |Internat|
|000005a0| 69 6f 6e 61 6c 20 54 79 | 70 65 66 61 63 65 20 43 |ional Ty|peface C|
|000005b0| 6f 72 70 6f 72 61 74 69 | 6f 6e 2e 0d 53 69 6d 75 |orporati|on..Simu|
|000005c0| 6c 74 61 6e 65 6f 75 73 | 6c 79 20 70 75 62 6c 69 |ltaneous|ly publi|
|000005d0| 73 68 65 64 20 69 6e 20 | 74 68 65 20 55 6e 69 74 |shed in |the Unit|
|000005e0| 65 64 20 53 74 61 74 65 | 73 20 61 6e 64 20 43 61 |ed State|s and Ca|
|000005f0| 6e 61 64 61 2e 0d 4c 49 | 4d 49 54 45 44 20 57 41 |nada..LI|MITED WA|
|00000600| 52 52 41 4e 54 59 20 4f | 4e 20 4d 45 44 49 41 20 |RRANTY O|N MEDIA |
|00000610| 41 4e 44 20 52 45 50 4c | 41 43 45 4d 45 4e 54 0d |AND REPL|ACEMENT.|
|00000620| 41 4c 4c 20 49 4d 50 4c | 49 45 44 20 57 41 52 52 |ALL IMPL|IED WARR|
|00000630| 41 4e 54 49 45 53 20 4f | 4e 20 54 48 49 53 20 4d |ANTIES O|N THIS M|
|00000640| 41 4e 55 41 4c 2c 20 49 | 4e 43 4c 55 44 49 4e 47 |ANUAL, I|NCLUDING|
|00000650| 20 49 4d 50 4c 49 45 44 | 20 57 41 52 52 41 4e 54 | IMPLIED| WARRANT|
|00000660| 49 45 53 20 4f 46 20 4d | 45 52 43 48 41 4e 54 41 |IES OF M|ERCHANTA|
|00000670| 42 49 4c 49 54 59 20 41 | 4e 44 20 46 49 54 4e 45 |BILITY A|ND FITNE|
|00000680| 53 53 20 46 4f 52 20 41 | 20 50 41 52 54 49 43 55 |SS FOR A| PARTICU|
|00000690| 4c 41 52 20 50 55 52 50 | 4f 53 45 2c 20 41 52 45 |LAR PURP|OSE, ARE|
|000006a0| 20 4c 49 4d 49 54 45 44 | 20 49 4e 20 44 55 52 41 | LIMITED| IN DURA|
|000006b0| 54 49 4f 4e 20 54 4f 20 | 4e 49 4e 45 54 59 20 28 |TION TO |NINETY (|
|000006c0| 39 30 29 20 44 41 59 53 | 20 46 52 4f 4d 20 54 48 |90) DAYS| FROM TH|
|000006d0| 45 20 44 41 54 45 20 4f | 46 20 54 48 45 20 4f 52 |E DATE O|F THE OR|
|000006e0| 49 47 49 4e 41 4c 20 52 | 45 54 41 49 4c 20 50 55 |IGINAL R|ETAIL PU|
|000006f0| 52 43 48 41 53 45 20 4f | 46 20 54 48 49 53 20 50 |RCHASE O|F THIS P|
|00000700| 52 4f 44 55 43 54 2e 0d | 45 76 65 6e 20 74 68 6f |RODUCT..|Even tho|
|00000710| 75 67 68 20 41 70 70 6c | 65 20 68 61 73 20 72 65 |ugh Appl|e has re|
|00000720| 76 69 65 77 65 64 20 74 | 68 69 73 20 6d 61 6e 75 |viewed t|his manu|
|00000730| 61 6c 2c 20 41 50 50 4c | 45 20 4d 41 4b 45 53 20 |al, APPL|E MAKES |
|00000740| 4e 4f 20 57 41 52 52 41 | 4e 54 59 20 4f 52 20 52 |NO WARRA|NTY OR R|
|00000750| 45 50 52 45 53 45 4e 54 | 41 54 49 4f 4e 2c 20 45 |EPRESENT|ATION, E|
|00000760| 49 54 48 45 52 20 45 58 | 50 52 45 53 53 20 4f 52 |ITHER EX|PRESS OR|
|00000770| 20 49 4d 50 4c 49 45 44 | 2c 20 57 49 54 48 20 52 | IMPLIED|, WITH R|
|00000780| 45 53 50 45 43 54 20 54 | 4f 20 54 48 49 53 20 4d |ESPECT T|O THIS M|
|00000790| 41 4e 55 41 4c 2c 20 49 | 54 53 20 51 55 41 4c 49 |ANUAL, I|TS QUALI|
|000007a0| 54 59 2c 20 41 43 43 55 | 52 41 43 59 2c 20 4d 45 |TY, ACCU|RACY, ME|
|000007b0| 52 43 48 41 4e 54 41 42 | 49 4c 49 54 59 2c 20 4f |RCHANTAB|ILITY, O|
|000007c0| 52 20 46 49 54 4e 45 53 | 53 20 46 4f 52 20 41 20 |R FITNES|S FOR A |
|000007d0| 50 41 52 54 49 43 55 4c | 41 52 20 50 55 52 50 4f |PARTICUL|AR PURPO|
|000007e0| 53 45 2e 20 41 53 20 41 | 20 52 45 53 55 4c 54 2c |SE. AS A| RESULT,|
|000007f0| 20 54 48 49 53 20 4d 41 | 4e 55 41 4c 20 49 53 20 | THIS MA|NUAL IS |
|00000800| 53 4f 4c 44 20 d2 41 53 | 20 49 53 2c d3 20 41 4e |SOLD .AS| IS,. AN|
|00000810| 44 20 59 4f 55 2c 20 54 | 48 45 20 50 55 52 43 48 |D YOU, T|HE PURCH|
|00000820| 41 53 45 52 2c 20 41 52 | 45 20 41 53 53 55 4d 49 |ASER, AR|E ASSUMI|
|00000830| 4e 47 20 54 48 45 20 45 | 4e 54 49 52 45 20 52 49 |NG THE E|NTIRE RI|
|00000840| 53 4b 20 41 53 20 54 4f | 20 49 54 53 20 51 55 41 |SK AS TO| ITS QUA|
|00000850| 4c 49 54 59 20 41 4e 44 | 20 41 43 43 55 52 41 43 |LITY AND| ACCURAC|
|00000860| 59 2e 0d 49 4e 20 4e 4f | 20 45 56 45 4e 54 20 57 |Y..IN NO| EVENT W|
|00000870| 49 4c 4c 20 41 50 50 4c | 45 20 42 45 20 4c 49 41 |ILL APPL|E BE LIA|
|00000880| 42 4c 45 20 46 4f 52 20 | 44 49 52 45 43 54 2c 20 |BLE FOR |DIRECT, |
|00000890| 49 4e 44 49 52 45 43 54 | 2c 20 53 50 45 43 49 41 |INDIRECT|, SPECIA|
|000008a0| 4c 2c 20 49 4e 43 49 44 | 45 4e 54 41 4c 2c 20 4f |L, INCID|ENTAL, O|
|000008b0| 52 20 43 4f 4e 53 45 51 | 55 45 4e 54 49 41 4c 20 |R CONSEQ|UENTIAL |
|000008c0| 44 41 4d 41 47 45 53 20 | 52 45 53 55 4c 54 49 4e |DAMAGES |RESULTIN|
|000008d0| 47 20 46 52 4f 4d 20 41 | 4e 59 20 44 45 46 45 43 |G FROM A|NY DEFEC|
|000008e0| 54 20 4f 52 20 49 4e 41 | 43 43 55 52 41 43 59 20 |T OR INA|CCURACY |
|000008f0| 49 4e 20 54 48 49 53 20 | 4d 41 4e 55 41 4c 2c 20 |IN THIS |MANUAL, |
|00000900| 65 76 65 6e 20 69 66 20 | 61 64 76 69 73 65 64 20 |even if |advised |
|00000910| 6f 66 20 74 68 65 20 70 | 6f 73 73 69 62 69 6c 69 |of the p|ossibili|
|00000920| 74 79 20 6f 66 20 73 75 | 63 68 20 64 61 6d 61 67 |ty of su|ch damag|
|00000930| 65 73 2e 0d 54 48 45 20 | 57 41 52 52 41 4e 54 59 |es..THE |WARRANTY|
|00000940| 20 41 4e 44 20 52 45 4d | 45 44 49 45 53 20 53 45 | AND REM|EDIES SE|
|00000950| 54 20 46 4f 52 54 48 20 | 41 42 4f 56 45 20 41 52 |T FORTH |ABOVE AR|
|00000960| 45 20 45 58 43 4c 55 53 | 49 56 45 20 41 4e 44 20 |E EXCLUS|IVE AND |
|00000970| 49 4e 20 4c 49 45 55 20 | 4f 46 20 41 4c 4c 20 4f |IN LIEU |OF ALL O|
|00000980| 54 48 45 52 53 2c 20 4f | 52 41 4c 20 4f 52 20 57 |THERS, O|RAL OR W|
|00000990| 52 49 54 54 45 4e 2c 20 | 45 58 50 52 45 53 53 20 |RITTEN, |EXPRESS |
|000009a0| 4f 52 20 49 4d 50 4c 49 | 45 44 2e 20 4e 6f 20 41 |OR IMPLI|ED. No A|
|000009b0| 70 70 6c 65 20 64 65 61 | 6c 65 72 2c 20 61 67 65 |pple dea|ler, age|
|000009c0| 6e 74 2c 20 6f 72 20 65 | 6d 70 6c 6f 79 65 65 20 |nt, or e|mployee |
|000009d0| 69 73 20 61 75 74 68 6f | 72 69 7a 65 64 20 74 6f |is autho|rized to|
|000009e0| 20 6d 61 6b 65 20 61 6e | 79 20 6d 6f 64 69 66 69 | make an|y modifi|
|000009f0| 63 61 74 69 6f 6e 2c 20 | 65 78 74 65 6e 73 69 6f |cation, |extensio|
|00000a00| 6e 2c 20 6f 72 20 61 64 | 64 69 74 69 6f 6e 20 74 |n, or ad|dition t|
|00000a10| 6f 20 74 68 69 73 20 77 | 61 72 72 61 6e 74 79 2e |o this w|arranty.|
|00000a20| 0d 53 6f 6d 65 20 73 74 | 61 74 65 73 20 64 6f 20 |.Some st|ates do |
|00000a30| 6e 6f 74 20 61 6c 6c 6f | 77 20 74 68 65 20 65 78 |not allo|w the ex|
|00000a40| 63 6c 75 73 69 6f 6e 20 | 6f 72 20 6c 69 6d 69 74 |clusion |or limit|
|00000a50| 61 74 69 6f 6e 20 6f 66 | 20 69 6d 70 6c 69 65 64 |ation of| implied|
|00000a60| 20 77 61 72 72 61 6e 74 | 69 65 73 20 6f 72 20 6c | warrant|ies or l|
|00000a70| 69 61 62 69 6c 69 74 79 | 20 66 6f 72 20 69 6e 63 |iability| for inc|
|00000a80| 69 64 65 6e 74 61 6c 20 | 6f 72 20 63 6f 6e 73 65 |idental |or conse|
|00000a90| 71 75 65 6e 74 69 61 6c | 20 64 61 6d 61 67 65 73 |quential| damages|
|00000aa0| 2c 20 73 6f 20 74 68 65 | 20 61 62 6f 76 65 20 6c |, so the| above l|
|00000ab0| 69 6d 69 74 61 74 69 6f | 6e 20 6f 72 20 65 78 63 |imitatio|n or exc|
|00000ac0| 6c 75 73 69 6f 6e 20 6d | 61 79 20 6e 6f 74 20 61 |lusion m|ay not a|
|00000ad0| 70 70 6c 79 20 74 6f 20 | 79 6f 75 2e 20 54 68 69 |pply to |you. Thi|
|00000ae0| 73 20 77 61 72 72 61 6e | 74 79 20 67 69 76 65 73 |s warran|ty gives|
|00000af0| 20 79 6f 75 20 73 70 65 | 63 69 66 69 63 20 6c 65 | you spe|cific le|
|00000b00| 67 61 6c 20 72 69 67 68 | 74 73 2c 20 61 6e 64 20 |gal righ|ts, and |
|00000b10| 79 6f 75 20 6d 61 79 20 | 61 6c 73 6f 20 68 61 76 |you may |also hav|
|00000b20| 65 20 6f 74 68 65 72 20 | 72 69 67 68 74 73 20 77 |e other |rights w|
|00000b30| 68 69 63 68 20 76 61 72 | 79 20 66 72 6f 6d 20 73 |hich var|y from s|
|00000b40| 74 61 74 65 20 74 6f 20 | 73 74 61 74 65 2e 0d 43 |tate to |state..C|
|00000b50| 6f 6e 74 65 6e 74 73 0d | 46 69 67 75 72 65 73 2c |ontents.|Figures,|
|00000b60| 20 54 61 62 6c 65 73 2c | 20 61 6e 64 20 4c 69 73 | Tables,| and Lis|
|00000b70| 74 69 6e 67 73 14 14 76 | 0d 43 68 61 70 74 65 72 |tings..v|.Chapter|
|00000b80| 20 31 09 46 72 6f 6d 20 | 51 75 69 63 6b 44 72 61 | 1.From |QuickDra|
|00000b90| 77 20 74 6f 20 51 75 69 | 63 6b 44 72 61 77 20 47 |w to Qui|ckDraw G|
|00000ba0| 58 14 14 31 2d 31 0d 0d | 41 20 42 72 69 65 66 20 |X..1-1..|A Brief |
|00000bb0| 48 69 73 74 6f 72 79 20 | 6f 66 20 51 75 69 63 6b |History |of Quick|
|00000bc0| 44 72 61 77 14 14 31 2d | 33 0d 47 72 61 70 68 69 |Draw..1-|3.Graphi|
|00000bd0| 63 73 20 50 72 6f 67 72 | 61 6d 6d 69 6e 67 20 49 |cs Progr|amming I|
|00000be0| 73 73 75 65 73 14 14 31 | 2d 34 0d 57 68 61 74 20 |ssues..1|-4.What |
|00000bf0| 74 6f 20 44 72 61 77 14 | 14 31 2d 35 0d 51 75 69 |to Draw.|.1-5.Qui|
|00000c00| 63 6b 44 72 61 77 20 53 | 68 61 70 65 73 14 14 31 |ckDraw S|hapes..1|
|00000c10| 2d 35 0d 51 75 69 63 6b | 44 72 61 77 20 47 58 20 |-5.Quick|Draw GX |
|00000c20| 53 68 61 70 65 73 14 14 | 31 2d 36 0d 48 6f 77 20 |Shapes..|1-6.How |
|00000c30| 74 6f 20 44 72 61 77 14 | 14 31 2d 39 0d 53 74 79 |to Draw.|.1-9.Sty|
|00000c40| 6c 65 20 4f 62 6a 65 63 | 74 73 14 14 31 2d 31 30 |le Objec|ts..1-10|
|00000c50| 0d 49 6e 6b 20 4f 62 6a | 65 63 74 73 20 61 6e 64 |.Ink Obj|ects and|
|00000c60| 20 43 6f 6c 6f 72 73 14 | 14 31 2d 31 32 0d 57 68 | Colors.|.1-12.Wh|
|00000c70| 65 72 65 20 74 6f 20 44 | 72 61 77 14 14 31 2d 31 |ere to D|raw..1-1|
|00000c80| 33 0d 54 72 61 6e 73 66 | 6f 72 6d 73 14 14 31 2d |3.Transf|orms..1-|
|00000c90| 31 34 0d 48 6f 77 20 74 | 6f 20 50 72 6f 67 72 61 |14.How t|o Progra|
|00000ca0| 6d 20 49 74 14 14 31 2d | 31 36 0d 43 68 61 70 74 |m It..1-|16.Chapt|
|00000cb0| 65 72 20 32 09 53 65 74 | 74 69 6e 67 20 55 70 20 |er 2.Set|ting Up |
|00000cc0| 74 68 65 20 53 61 6d 70 | 6c 65 20 41 70 70 6c 69 |the Samp|le Appli|
|00000cd0| 63 61 74 69 6f 6e 14 14 | 32 2d 31 0d 0d 54 68 65 |cation..|2-1..The|
|00000ce0| 20 53 68 65 6c 6c 20 50 | 72 6f 67 72 61 6d 14 14 | Shell P|rogram..|
|00000cf0| 32 2d 33 0d 49 6e 69 74 | 69 61 6c 69 7a 61 74 69 |2-3.Init|ializati|
|00000d00| 6e 67 20 51 75 69 63 6b | 44 72 61 77 20 47 58 14 |ng Quick|Draw GX.|
|00000d10| 14 32 2d 33 0d 41 74 74 | 61 63 68 69 6e 67 20 56 |.2-3.Att|aching V|
|00000d20| 69 65 77 20 50 6f 72 74 | 73 20 74 6f 20 57 69 6e |iew Port|s to Win|
|00000d30| 64 6f 77 73 14 14 32 2d | 34 0d 54 68 65 20 44 72 |dows..2-|4.The Dr|
|00000d40| 61 77 69 6e 67 20 46 75 | 6e 63 74 69 6f 6e 73 14 |awing Fu|nctions.|
|00000d50| 14 32 2d 35 0d 43 68 61 | 70 74 65 72 20 33 09 50 |.2-5.Cha|pter 3.P|
|00000d60| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 57 69 74 68 20 |rogrammi|ng With |
|00000d70| 53 68 61 70 65 73 14 14 | 33 2d 31 0d 0d 44 72 61 |Shapes..|3-1..Dra|
|00000d80| 77 69 6e 67 20 61 20 4c | 69 6e 65 14 14 33 2d 33 |wing a L|ine..3-3|
|00000d90| 0d 44 72 61 77 69 6e 67 | 20 61 20 52 65 63 74 61 |.Drawing| a Recta|
|00000da0| 6e 67 6c 65 14 14 33 2d | 36 0d 44 72 61 77 69 6e |ngle..3-|6.Drawin|
|00000db0| 67 20 61 20 46 72 61 6d | 65 64 20 52 65 63 74 61 |g a Fram|ed Recta|
|00000dc0| 6e 67 6c 65 14 14 33 2d | 38 0d 44 72 61 77 69 6e |ngle..3-|8.Drawin|
|00000dd0| 67 20 61 20 43 75 72 76 | 65 14 14 33 2d 31 30 0d |g a Curv|e..3-10.|
|00000de0| 44 72 61 77 69 6e 67 20 | 61 20 50 6f 6c 79 67 6f |Drawing |a Polygo|
|00000df0| 6e 14 14 33 2d 31 31 0d | 44 72 61 77 69 6e 67 20 |n..3-11.|Drawing |
|00000e00| 61 20 50 61 74 68 14 14 | 33 2d 31 33 0d 44 72 61 |a Path..|3-13.Dra|
|00000e10| 77 69 6e 67 20 54 65 78 | 74 14 14 33 2d 31 35 0d |wing Tex|t..3-15.|
|00000e20| 44 72 61 77 69 6e 67 20 | 47 6c 79 70 68 73 14 14 |Drawing |Glyphs..|
|00000e30| 33 2d 31 36 0d 44 72 61 | 77 69 6e 67 20 61 20 4c |3-16.Dra|wing a L|
|00000e40| 61 79 6f 75 74 20 53 68 | 61 70 65 14 14 33 2d 31 |ayout Sh|ape..3-1|
|00000e50| 39 0d 44 72 61 77 69 6e | 67 20 61 20 42 69 74 6d |9.Drawin|g a Bitm|
|00000e60| 61 70 14 14 33 2d 32 32 | 0d 44 72 61 77 69 6e 67 |ap..3-22|.Drawing|
|00000e70| 20 61 20 50 69 63 74 75 | 72 65 14 14 33 2d 32 34 | a Pictu|re..3-24|
|00000e80| 0d 43 68 61 70 74 65 72 | 20 34 09 50 72 6f 67 72 |.Chapter| 4.Progr|
|00000e90| 61 6d 6d 69 6e 67 20 57 | 69 74 68 20 53 74 79 6c |amming W|ith Styl|
|00000ea0| 65 73 14 14 34 2d 31 0d | 0d 43 72 65 61 74 69 6e |es..4-1.|.Creatin|
|00000eb0| 67 20 61 20 54 68 69 63 | 6b 20 4c 69 6e 65 14 14 |g a Thic|k Line..|
|00000ec0| 34 2d 33 0d 43 72 65 61 | 74 69 6e 67 20 61 20 54 |4-3.Crea|ting a T|
|00000ed0| 68 69 63 6b 20 43 75 72 | 76 65 14 14 34 2d 34 0d |hick Cur|ve..4-4.|
|00000ee0| 41 64 64 69 6e 67 20 44 | 61 73 68 65 73 20 74 6f |Adding D|ashes to|
|00000ef0| 20 61 20 43 75 72 76 65 | 14 14 34 2d 35 0d 41 64 | a Curve|..4-5.Ad|
|00000f00| 64 69 6e 67 20 43 61 70 | 73 20 74 6f 20 61 20 43 |ding Cap|s to a C|
|00000f10| 75 72 76 65 14 14 34 2d | 38 0d 41 64 64 69 6e 67 |urve..4-|8.Adding|
|00000f20| 20 61 20 50 61 74 74 65 | 72 6e 20 74 6f 20 61 20 | a Patte|rn to a |
|00000f30| 43 75 72 76 65 14 14 34 | 2d 31 30 0d 43 68 61 6e |Curve..4|-10.Chan|
|00000f40| 67 69 6e 67 20 54 65 78 | 74 20 53 69 7a 65 20 61 |ging Tex|t Size a|
|00000f50| 6e 64 20 46 6f 6e 74 14 | 14 34 2d 31 33 0d 43 68 |nd Font.|.4-13.Ch|
|00000f60| 61 6e 67 69 6e 67 20 74 | 68 65 20 54 65 78 74 20 |anging t|he Text |
|00000f70| 46 61 63 65 14 14 34 2d | 31 34 0d 49 6e 73 65 74 |Face..4-|14.Inset|
|00000f80| 74 69 6e 67 20 61 6e 64 | 20 4f 75 74 73 65 74 74 |ting and| Outsett|
|00000f90| 69 6e 67 20 74 68 65 20 | 50 65 6e 14 14 34 2d 31 |ing the |Pen..4-1|
|00000fa0| 34 0d 43 68 61 6e 67 69 | 6e 67 20 74 68 65 20 53 |4.Changi|ng the S|
|00000fb0| 74 79 6c 65 20 6f 66 20 | 61 20 50 69 63 74 75 72 |tyle of |a Pictur|
|00000fc0| 65 20 45 6c 65 6d 65 6e | 74 14 14 34 2d 31 37 0d |e Elemen|t..4-17.|
|00000fd0| 43 68 61 70 74 65 72 20 | 35 09 50 72 6f 67 72 61 |Chapter |5.Progra|
|00000fe0| 6d 6d 69 6e 67 20 57 69 | 74 68 20 49 6e 6b 73 14 |mming Wi|th Inks.|
|00000ff0| 14 35 2d 31 0d 0d 44 72 | 61 77 69 6e 67 20 61 20 |.5-1..Dr|awing a |
|00001000| 42 6c 75 65 20 43 75 72 | 76 65 14 14 35 2d 33 0d |Blue Cur|ve..5-3.|
|00001010| 42 6c 65 6e 64 69 6e 67 | 20 54 77 6f 20 53 68 61 |Blending| Two Sha|
|00001020| 70 65 73 14 14 35 2d 34 | 0d 43 68 61 6e 67 69 6e |pes..5-4|.Changin|
|00001030| 67 20 74 68 65 20 49 6e | 6b 20 6f 66 20 61 20 50 |g the In|k of a P|
|00001040| 69 63 74 75 72 65 20 45 | 6c 65 6d 65 6e 74 14 14 |icture E|lement..|
|00001050| 35 2d 36 0d 43 68 61 70 | 74 65 72 20 36 09 50 72 |5-6.Chap|ter 6.Pr|
|00001060| 6f 67 72 61 6d 6d 69 6e | 67 20 57 69 74 68 20 54 |ogrammin|g With T|
|00001070| 72 61 6e 73 66 6f 72 6d | 73 14 14 36 2d 31 0d 0d |ransform|s..6-1..|
|00001080| 43 6c 69 70 70 69 6e 67 | 20 61 20 43 75 72 76 65 |Clipping| a Curve|
|00001090| 14 14 36 2d 33 0d 52 6f | 74 61 74 69 6e 67 20 61 |..6-3.Ro|tating a|
|000010a0| 20 43 75 72 76 65 14 14 | 36 2d 35 0d 53 6b 65 77 | Curve..|6-5.Skew|
|000010b0| 69 6e 67 20 54 65 78 74 | 14 14 36 2d 37 0d 54 72 |ing Text|..6-7.Tr|
|000010c0| 61 6e 73 66 6f 72 6d 69 | 6e 67 20 61 6e 20 45 6c |ansformi|ng an El|
|000010d0| 65 6d 65 6e 74 20 6f 66 | 20 61 20 50 69 63 74 75 |ement of| a Pictu|
|000010e0| 72 65 14 14 36 2d 38 0d | 48 69 74 2d 54 65 73 74 |re..6-8.|Hit-Test|
|000010f0| 69 6e 67 14 14 36 2d 39 | 0d 43 68 61 70 74 65 72 |ing..6-9|.Chapter|
|00001100| 20 37 09 50 72 69 6e 74 | 69 6e 67 14 14 37 2d 31 | 7.Print|ing..7-1|
|00001110| 0d 0d 50 72 65 70 61 72 | 69 6e 67 20 74 6f 20 50 |..Prepar|ing to P|
|00001120| 72 69 6e 74 14 14 37 2d | 33 0d 53 65 74 74 69 6e |rint..7-|3.Settin|
|00001130| 67 20 55 70 20 61 20 44 | 6f 63 75 6d 65 6e 74 14 |g Up a D|ocument.|
|00001140| 14 37 2d 34 0d 50 72 69 | 6e 74 69 6e 67 20 4f 6e |.7-4.Pri|nting On|
|00001150| 65 20 43 6f 70 79 14 14 | 37 2d 35 0d 44 69 73 70 |e Copy..|7-5.Disp|
|00001160| 6c 61 79 69 6e 67 20 74 | 68 65 20 50 72 69 6e 74 |laying t|he Print|
|00001170| 20 44 69 61 6c 6f 67 20 | 42 6f 78 14 14 37 2d 37 | Dialog |Box..7-7|
|00001180| 0d 46 69 67 75 72 65 73 | 2c 20 54 61 62 6c 65 73 |.Figures|, Tables|
|00001190| 2c 20 61 6e 64 20 4c 69 | 73 74 69 6e 67 73 0d 43 |, and Li|stings.C|
|000011a0| 68 61 70 74 65 72 20 31 | 09 46 72 6f 6d 20 51 75 |hapter 1|.From Qu|
|000011b0| 69 63 6b 44 72 61 77 20 | 74 6f 20 51 75 69 63 6b |ickDraw |to Quick|
|000011c0| 44 72 61 77 20 47 58 14 | 14 31 2d 31 0d 0d 46 69 |Draw GX.|.1-1..Fi|
|000011d0| 67 75 72 65 20 31 2d 31 | 09 54 68 65 20 73 68 61 |gure 1-1|.The sha|
|000011e0| 70 65 20 6f 62 6a 65 63 | 74 14 14 31 2d 38 0d 46 |pe objec|t..1-8.F|
|000011f0| 69 67 75 72 65 20 31 2d | 32 09 54 68 65 20 73 74 |igure 1-|2.The st|
|00001200| 79 6c 65 20 6f 62 6a 65 | 63 74 14 14 31 2d 31 31 |yle obje|ct..1-11|
|00001210| 0d 46 69 67 75 72 65 20 | 31 2d 33 09 51 75 69 63 |.Figure |1-3.Quic|
|00001220| 6b 44 72 61 77 20 70 65 | 6e 20 76 65 72 73 75 73 |kDraw pe|n versus|
|00001230| 20 51 75 69 63 6b 44 72 | 61 77 20 47 58 20 70 65 | QuickDr|aw GX pe|
|00001240| 6e 14 14 31 2d 31 32 0d | 46 69 67 75 72 65 20 31 |n..1-12.|Figure 1|
|00001250| 2d 34 09 41 6e 20 69 6e | 6b 20 6f 62 6a 65 63 74 |-4.An in|k object|
|00001260| 14 14 31 2d 31 32 0d 46 | 69 67 75 72 65 20 31 2d |..1-12.F|igure 1-|
|00001270| 35 09 41 20 74 72 61 6e | 73 66 6f 72 6d 20 6f 62 |5.A tran|sform ob|
|00001280| 6a 65 63 74 14 14 31 2d | 31 35 0d 43 68 61 70 74 |ject..1-|15.Chapt|
|00001290| 65 72 20 32 09 53 65 74 | 74 69 6e 67 20 55 70 20 |er 2.Set|ting Up |
|000012a0| 74 68 65 20 53 61 6d 70 | 6c 65 20 41 70 70 6c 69 |the Samp|le Appli|
|000012b0| 63 61 74 69 6f 6e 14 14 | 32 2d 31 0d 0d 43 68 61 |cation..|2-1..Cha|
|000012c0| 70 74 65 72 20 33 09 50 | 72 6f 67 72 61 6d 6d 69 |pter 3.P|rogrammi|
|000012d0| 6e 67 20 57 69 74 68 20 | 53 68 61 70 65 73 14 14 |ng With |Shapes..|
|000012e0| 33 2d 31 0d 0d 4c 69 73 | 74 69 6e 67 20 33 2d 31 |3-1..Lis|ting 3-1|
|000012f0| 09 54 68 65 20 43 72 65 | 61 74 65 4c 69 6e 65 20 |.The Cre|ateLine |
|00001300| 66 75 6e 63 74 69 6f 6e | 14 14 33 2d 34 0d 46 69 |function|..3-4.Fi|
|00001310| 67 75 72 65 20 33 2d 31 | 09 41 20 6c 69 6e 65 20 |gure 3-1|.A line |
|00001320| 73 68 61 70 65 14 14 33 | 2d 34 0d 4c 69 73 74 69 |shape..3|-4.Listi|
|00001330| 6e 67 20 33 2d 32 09 54 | 68 65 20 44 6f 44 72 61 |ng 3-2.T|he DoDra|
|00001340| 77 20 66 75 6e 63 74 69 | 6f 6e 14 14 33 2d 35 0d |w functi|on..3-5.|
|00001350| 4c 69 73 74 69 6e 67 20 | 33 2d 33 09 54 68 65 20 |Listing |3-3.The |
|00001360| 43 65 6e 74 65 72 53 68 | 61 70 65 49 6e 57 69 6e |CenterSh|apeInWin|
|00001370| 64 6f 77 20 66 75 6e 63 | 74 69 6f 6e 14 14 33 2d |dow func|tion..3-|
|00001380| 35 0d 4c 69 73 74 69 6e | 67 20 33 2d 34 09 54 68 |5.Listin|g 3-4.Th|
|00001390| 65 20 43 72 65 61 74 65 | 52 65 63 74 61 6e 67 6c |e Create|Rectangl|
|000013a0| 65 20 66 75 6e 63 74 69 | 6f 6e 14 14 33 2d 36 0d |e functi|on..3-6.|
|000013b0| 46 69 67 75 72 65 20 33 | 2d 32 09 41 20 72 65 63 |Figure 3|-2.A rec|
|000013c0| 74 61 6e 67 6c 65 20 73 | 68 61 70 65 14 14 33 2d |tangle s|hape..3-|
|000013d0| 36 0d 4c 69 73 74 69 6e | 67 20 33 2d 35 09 54 68 |6.Listin|g 3-5.Th|
|000013e0| 65 20 53 65 74 55 70 45 | 72 61 73 65 72 41 6e 64 |e SetUpE|raserAnd|
|000013f0| 49 6e 76 61 6c 57 69 6e | 64 6f 77 20 66 75 6e 63 |InvalWin|dow func|
|00001400| 74 69 6f 6e 14 14 33 2d | 37 0d 4c 69 73 74 69 6e |tion..3-|7.Listin|
|00001410| 67 20 33 2d 36 09 54 68 | 65 20 44 6f 44 72 61 77 |g 3-6.Th|e DoDraw|
|00001420| 20 66 75 6e 63 74 69 6f | 6e 14 14 33 2d 37 0d 4c | functio|n..3-7.L|
|00001430| 69 73 74 69 6e 67 20 33 | 2d 37 09 54 68 65 20 43 |isting 3|-7.The C|
|00001440| 72 65 61 74 65 41 46 72 | 61 6d 65 64 52 65 63 74 |reateAFr|amedRect|
|00001450| 61 6e 67 6c 65 20 66 75 | 6e 63 74 69 6f 6e 14 14 |angle fu|nction..|
|00001460| 33 2d 39 0d 46 69 67 75 | 72 65 20 33 2d 33 09 41 |3-9.Figu|re 3-3.A|
|00001470| 20 66 72 61 6d 65 64 20 | 72 65 63 74 61 6e 67 6c | framed |rectangl|
|00001480| 65 14 14 33 2d 39 0d 4c | 69 73 74 69 6e 67 20 33 |e..3-9.L|isting 3|
|00001490| 2d 38 09 54 68 65 20 43 | 72 65 61 74 65 43 75 72 |-8.The C|reateCur|
|000014a0| 76 65 20 66 75 6e 63 74 | 69 6f 6e 14 14 33 2d 31 |ve funct|ion..3-1|
|000014b0| 30 0d 46 69 67 75 72 65 | 20 33 2d 34 09 41 20 63 |0.Figure| 3-4.A c|
|000014c0| 75 72 76 65 20 73 68 61 | 70 65 14 14 33 2d 31 31 |urve sha|pe..3-11|
|000014d0| 0d 4c 69 73 74 69 6e 67 | 20 33 2d 39 09 54 68 65 |.Listing| 3-9.The|
|000014e0| 20 43 72 65 61 74 65 50 | 6f 6c 79 67 6f 6e 20 66 | CreateP|olygon f|
|000014f0| 75 6e 63 74 69 6f 6e 14 | 14 33 2d 31 32 0d 46 69 |unction.|.3-12.Fi|
|00001500| 67 75 72 65 20 33 2d 35 | 09 41 20 70 6f 6c 79 67 |gure 3-5|.A polyg|
|00001510| 6f 6e 20 73 68 61 70 65 | 14 14 33 2d 31 33 0d 4c |on shape|..3-13.L|
|00001520| 69 73 74 69 6e 67 20 33 | 2d 31 30 09 54 68 65 20 |isting 3|-10.The |
|00001530| 43 72 65 61 74 65 50 61 | 74 68 20 66 75 6e 63 74 |CreatePa|th funct|
|00001540| 69 6f 6e 14 14 33 2d 31 | 34 0d 46 69 67 75 72 65 |ion..3-1|4.Figure|
|00001550| 20 33 2d 36 09 41 20 70 | 61 74 68 20 73 68 61 70 | 3-6.A p|ath shap|
|00001560| 65 14 14 33 2d 31 35 0d | 4c 69 73 74 69 6e 67 20 |e..3-15.|Listing |
|00001570| 33 2d 31 31 09 54 68 65 | 20 43 72 65 61 74 65 54 |3-11.The| CreateT|
|00001580| 65 78 74 20 66 75 6e 63 | 74 69 6f 6e 14 14 33 2d |ext func|tion..3-|
|00001590| 31 35 0d 46 69 67 75 72 | 65 20 33 2d 37 09 41 20 |15.Figur|e 3-7.A |
|000015a0| 74 65 78 74 20 73 68 61 | 70 65 14 14 33 2d 31 36 |text sha|pe..3-16|
|000015b0| 0d 4c 69 73 74 69 6e 67 | 20 33 2d 31 32 09 54 68 |.Listing| 3-12.Th|
|000015c0| 65 20 43 72 65 61 74 65 | 47 6c 79 70 68 73 20 66 |e Create|Glyphs f|
|000015d0| 75 6e 63 74 69 6f 6e 14 | 14 33 2d 31 37 0d 46 69 |unction.|.3-17.Fi|
|000015e0| 67 75 72 65 20 33 2d 38 | 09 41 20 67 6c 79 70 68 |gure 3-8|.A glyph|
|000015f0| 20 73 68 61 70 65 14 14 | 33 2d 31 39 0d 4c 69 73 | shape..|3-19.Lis|
|00001600| 74 69 6e 67 20 33 2d 31 | 33 09 54 68 65 20 43 72 |ting 3-1|3.The Cr|
|00001610| 65 61 74 65 4c 61 79 6f | 75 74 20 66 75 6e 63 74 |eateLayo|ut funct|
|00001620| 69 6f 6e 14 14 33 2d 32 | 30 0d 46 69 67 75 72 65 |ion..3-2|0.Figure|
|00001630| 20 33 2d 39 09 41 20 6c | 61 79 6f 75 74 20 73 68 | 3-9.A l|ayout sh|
|00001640| 61 70 65 14 14 33 2d 32 | 32 0d 4c 69 73 74 69 6e |ape..3-2|2.Listin|
|00001650| 67 20 33 2d 31 34 09 54 | 68 65 20 43 72 65 61 74 |g 3-14.T|he Creat|
|00001660| 65 42 69 74 6d 61 70 20 | 66 75 6e 63 74 69 6f 6e |eBitmap |function|
|00001670| 14 14 33 2d 32 33 0d 46 | 69 67 75 72 65 20 33 2d |..3-23.F|igure 3-|
|00001680| 31 30 09 41 20 62 69 74 | 6d 61 70 20 73 68 61 70 |10.A bit|map shap|
|00001690| 65 14 14 33 2d 32 34 0d | 4c 69 73 74 69 6e 67 20 |e..3-24.|Listing |
|000016a0| 33 2d 31 35 09 54 68 65 | 20 43 72 65 61 74 65 50 |3-15.The| CreateP|
|000016b0| 69 63 74 75 72 65 20 66 | 75 6e 63 74 69 6f 6e 14 |icture f|unction.|
|000016c0| 14 33 2d 32 35 0d 46 69 | 67 75 72 65 20 33 2d 31 |.3-25.Fi|gure 3-1|
|000016d0| 31 09 41 20 70 69 63 74 | 75 72 65 20 73 68 61 70 |1.A pict|ure shap|
|000016e0| 65 14 14 33 2d 32 36 0d | 4c 69 73 74 69 6e 67 20 |e..3-26.|Listing |
|000016f0| 33 2d 31 36 09 54 68 65 | 20 53 65 74 55 70 45 72 |3-16.The| SetUpEr|
|00001700| 61 73 65 72 41 6e 64 49 | 6e 76 61 6c 57 69 6e 64 |aserAndI|nvalWind|
|00001710| 6f 77 20 66 75 6e 63 74 | 69 6f 6e 20 66 6f 72 20 |ow funct|ion for |
|00001720| 70 69 63 74 75 72 65 20 | 73 68 61 70 65 73 14 14 |picture |shapes..|
|00001730| 33 2d 32 37 0d 43 68 61 | 70 74 65 72 20 34 09 50 |3-27.Cha|pter 4.P|
|00001740| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 57 69 74 68 20 |rogrammi|ng With |
|00001750| 53 74 79 6c 65 73 14 14 | 34 2d 31 0d 0d 4c 69 73 |Styles..|4-1..Lis|
|00001760| 74 69 6e 67 20 34 2d 31 | 09 54 68 65 20 43 72 65 |ting 4-1|.The Cre|
|00001770| 61 74 65 41 54 68 69 63 | 6b 4c 69 6e 65 20 66 75 |ateAThic|kLine fu|
|00001780| 6e 63 74 69 6f 6e 14 14 | 34 2d 33 0d 46 69 67 75 |nction..|4-3.Figu|
|00001790| 72 65 20 34 2d 31 09 41 | 20 74 68 69 63 6b 20 6c |re 4-1.A| thick l|
|000017a0| 69 6e 65 14 14 34 2d 34 | 0d 4c 69 73 74 69 6e 67 |ine..4-4|.Listing|
|000017b0| 20 34 2d 32 09 54 68 65 | 20 43 72 65 61 74 65 41 | 4-2.The| CreateA|
|000017c0| 54 68 69 63 6b 43 75 72 | 76 65 20 66 75 6e 63 74 |ThickCur|ve funct|
|000017d0| 69 6f 6e 14 14 34 2d 35 | 0d 46 69 67 75 72 65 20 |ion..4-5|.Figure |
|000017e0| 34 2d 32 09 41 20 74 68 | 69 63 6b 20 63 75 72 76 |4-2.A th|ick curv|
|000017f0| 65 14 14 34 2d 35 0d 4c | 69 73 74 69 6e 67 20 34 |e..4-5.L|isting 4|
|00001800| 2d 33 09 54 68 65 20 43 | 72 65 61 74 65 41 44 61 |-3.The C|reateADa|
|00001810| 73 68 65 64 43 75 72 76 | 65 20 66 75 6e 63 74 69 |shedCurv|e functi|
|00001820| 6f 6e 14 14 34 2d 36 0d | 46 69 67 75 72 65 20 34 |on..4-6.|Figure 4|
|00001830| 2d 33 09 41 20 64 61 73 | 68 65 64 20 63 75 72 76 |-3.A das|hed curv|
|00001840| 65 14 14 34 2d 37 0d 4c | 69 73 74 69 6e 67 20 34 |e..4-7.L|isting 4|
|00001850| 2d 34 09 54 68 65 20 43 | 72 65 61 74 65 41 43 61 |-4.The C|reateACa|
|00001860| 70 70 65 64 43 75 72 76 | 65 20 66 75 6e 63 74 69 |ppedCurv|e functi|
|00001870| 6f 6e 14 14 34 2d 38 0d | 46 69 67 75 72 65 20 34 |on..4-8.|Figure 4|
|00001880| 2d 34 09 41 20 63 61 70 | 70 65 64 20 63 75 72 76 |-4.A cap|ped curv|
|00001890| 65 14 14 34 2d 31 30 0d | 4c 69 73 74 69 6e 67 20 |e..4-10.|Listing |
|000018a0| 34 2d 35 09 54 68 65 20 | 43 72 65 61 74 65 41 50 |4-5.The |CreateAP|
|000018b0| 61 74 74 65 72 6e 65 64 | 43 75 72 76 65 20 66 75 |atterned|Curve fu|
|000018c0| 6e 63 74 69 6f 6e 14 14 | 34 2d 31 31 0d 46 69 67 |nction..|4-11.Fig|
|000018d0| 75 72 65 20 34 2d 35 09 | 41 20 70 61 74 74 65 72 |ure 4-5.|A patter|
|000018e0| 6e 65 64 20 63 75 72 76 | 65 14 14 34 2d 31 32 0d |ned curv|e..4-12.|
|000018f0| 4c 69 73 74 69 6e 67 20 | 34 2d 36 09 54 68 65 20 |Listing |4-6.The |
|00001900| 43 68 61 6e 67 65 54 65 | 78 74 53 69 7a 65 41 6e |ChangeTe|xtSizeAn|
|00001910| 64 46 6f 6e 74 20 66 75 | 6e 63 74 69 6f 6e 14 14 |dFont fu|nction..|
|00001920| 34 2d 31 33 0d 46 69 67 | 75 72 65 20 34 2d 36 09 |4-13.Fig|ure 4-6.|
|00001930| 45 6e 6c 61 72 67 65 64 | 20 74 65 78 74 14 14 34 |Enlarged| text..4|
|00001940| 2d 31 33 0d 4c 69 73 74 | 69 6e 67 20 34 2d 37 09 |-13.List|ing 4-7.|
|00001950| 54 68 65 20 43 68 61 6e | 67 65 54 65 78 74 53 74 |The Chan|geTextSt|
|00001960| 79 6c 65 20 66 75 6e 63 | 74 69 6f 6e 14 14 34 2d |yle func|tion..4-|
|00001970| 31 34 0d 46 69 67 75 72 | 65 20 34 2d 37 09 49 74 |14.Figur|e 4-7.It|
|00001980| 61 6c 69 63 2c 20 65 78 | 74 65 6e 64 65 64 2c 20 |alic, ex|tended, |
|00001990| 65 6e 6c 61 72 67 65 64 | 20 74 65 78 74 14 14 34 |enlarged| text..4|
|000019a0| 2d 31 34 0d 4c 69 73 74 | 69 6e 67 20 34 2d 38 09 |-14.List|ing 4-8.|
|000019b0| 54 68 65 20 50 65 6e 47 | 65 6f 6d 65 74 72 79 50 |The PenG|eometryP|
|000019c0| 61 74 68 50 6c 61 79 20 | 66 75 6e 63 74 69 6f 6e |athPlay |function|
|000019d0| 14 14 34 2d 31 35 0d 46 | 69 67 75 72 65 20 34 2d |..4-15.F|igure 4-|
|000019e0| 38 09 50 61 74 68 20 77 | 69 74 68 20 70 65 6e 20 |8.Path w|ith pen |
|000019f0| 69 6e 73 65 74 2c 20 63 | 65 6e 74 65 72 64 2c 20 |inset, c|enterd, |
|00001a00| 61 6e 64 20 6f 75 74 73 | 65 74 14 14 34 2d 31 36 |and outs|et..4-16|
|00001a10| 0d 4c 69 73 74 69 6e 67 | 20 34 2d 39 09 54 68 65 |.Listing| 4-9.The|
|00001a20| 20 41 64 64 54 68 69 63 | 6b 42 6f 72 64 65 72 49 | AddThic|kBorderI|
|00001a30| 6e 50 69 63 74 75 72 65 | 20 66 75 6e 63 74 69 6f |nPicture| functio|
|00001a40| 6e 14 14 34 2d 31 37 0d | 46 69 67 75 72 65 20 34 |n..4-17.|Figure 4|
|00001a50| 2d 39 09 41 20 68 6f 75 | 73 65 20 77 69 74 68 20 |-9.A hou|se with |
|00001a60| 61 20 74 68 69 63 6b 20 | 62 6f 72 64 65 72 14 14 |a thick |border..|
|00001a70| 34 2d 31 38 0d 43 68 61 | 70 74 65 72 20 35 09 50 |4-18.Cha|pter 5.P|
|00001a80| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 57 69 74 68 20 |rogrammi|ng With |
|00001a90| 49 6e 6b 73 14 14 35 2d | 31 0d 0d 4c 69 73 74 69 |Inks..5-|1..Listi|
|00001aa0| 6e 67 20 35 2d 31 09 54 | 68 65 20 43 72 65 61 74 |ng 5-1.T|he Creat|
|00001ab0| 65 41 42 6c 75 65 43 75 | 72 76 65 20 66 75 6e 63 |eABlueCu|rve func|
|00001ac0| 74 69 6f 6e 14 14 35 2d | 33 0d 46 69 67 75 72 65 |tion..5-|3.Figure|
|00001ad0| 20 35 2d 31 09 41 20 62 | 6c 75 65 20 63 75 72 76 | 5-1.A b|lue curv|
|00001ae0| 65 14 14 35 2d 34 0d 4c | 69 73 74 69 6e 67 20 35 |e..5-4.L|isting 5|
|00001af0| 2d 32 09 54 68 65 20 43 | 72 65 61 74 65 41 42 6c |-2.The C|reateABl|
|00001b00| 65 6e 64 65 64 43 75 72 | 76 65 20 66 75 6e 63 74 |endedCur|ve funct|
|00001b10| 69 6f 6e 14 14 35 2d 34 | 0d 46 69 67 75 72 65 20 |ion..5-4|.Figure |
|00001b20| 35 2d 32 09 42 6c 65 6e | 64 65 64 20 63 75 72 76 |5-2.Blen|ded curv|
|00001b30| 65 73 14 14 35 2d 36 0d | 4c 69 73 74 69 6e 67 20 |es..5-6.|Listing |
|00001b40| 35 2d 33 09 54 68 65 20 | 41 64 64 49 6e 6b 54 6f |5-3.The |AddInkTo|
|00001b50| 44 6f 6f 72 49 6e 50 69 | 63 74 75 72 65 20 66 75 |DoorInPi|cture fu|
|00001b60| 6e 63 74 69 6f 6e 14 14 | 35 2d 36 0d 46 69 67 75 |nction..|5-6.Figu|
|00001b70| 72 65 20 35 2d 33 09 41 | 20 68 6f 75 73 65 20 77 |re 5-3.A| house w|
|00001b80| 69 74 68 20 61 20 74 75 | 72 71 75 6f 69 73 65 20 |ith a tu|rquoise |
|00001b90| 64 6f 6f 72 14 14 35 2d | 37 0d 43 68 61 70 74 65 |door..5-|7.Chapte|
|00001ba0| 72 20 36 09 50 72 6f 67 | 72 61 6d 6d 69 6e 67 20 |r 6.Prog|ramming |
|00001bb0| 57 69 74 68 20 54 72 61 | 6e 73 66 6f 72 6d 73 14 |With Tra|nsforms.|
|00001bc0| 14 36 2d 31 0d 0d 4c 69 | 73 74 69 6e 67 20 36 2d |.6-1..Li|sting 6-|
|00001bd0| 31 09 54 68 65 20 43 6c | 69 70 43 75 72 76 65 20 |1.The Cl|ipCurve |
|00001be0| 66 75 6e 63 74 69 6f 6e | 14 14 36 2d 33 0d 46 69 |function|..6-3.Fi|
|00001bf0| 67 75 72 65 20 36 2d 31 | 09 41 20 63 6c 69 70 70 |gure 6-1|.A clipp|
|00001c00| 65 64 20 63 75 72 76 65 | 14 14 36 2d 35 0d 4c 69 |ed curve|..6-5.Li|
|00001c10| 73 74 69 6e 67 20 36 2d | 32 09 54 68 65 20 52 6f |sting 6-|2.The Ro|
|00001c20| 74 61 74 65 43 75 72 76 | 65 20 66 75 6e 63 74 69 |tateCurv|e functi|
|00001c30| 6f 6e 14 14 36 2d 36 0d | 46 69 67 75 72 65 20 36 |on..6-6.|Figure 6|
|00001c40| 2d 32 09 41 20 72 6f 74 | 61 74 65 64 20 63 75 72 |-2.A rot|ated cur|
|00001c50| 76 65 14 14 36 2d 37 0d | 4c 69 73 74 69 6e 67 20 |ve..6-7.|Listing |
|00001c60| 36 2d 33 09 54 68 65 20 | 53 6b 65 77 54 65 78 74 |6-3.The |SkewText|
|00001c70| 20 66 75 6e 63 74 69 6f | 6e 14 14 36 2d 37 0d 46 | functio|n..6-7.F|
|00001c80| 69 67 75 72 65 20 36 2d | 33 09 53 6b 65 77 65 64 |igure 6-|3.Skewed|
|00001c90| 20 74 65 78 74 14 14 36 | 2d 38 0d 4c 69 73 74 69 | text..6|-8.Listi|
|00001ca0| 6e 67 20 36 2d 34 09 54 | 68 65 20 41 64 64 4e 65 |ng 6-4.T|he AddNe|
|00001cb0| 77 57 69 6e 64 6f 77 54 | 6f 50 69 63 74 75 72 65 |wWindowT|oPicture|
|00001cc0| 20 66 75 6e 63 74 69 6f | 6e 14 14 36 2d 38 0d 46 | functio|n..6-8.F|
|00001cd0| 69 67 75 72 65 20 36 2d | 34 09 41 20 68 6f 75 73 |igure 6-|4.A hous|
|00001ce0| 65 20 77 69 74 68 20 74 | 77 6f 20 77 69 6e 64 6f |e with t|wo windo|
|00001cf0| 77 73 14 14 36 2d 39 0d | 4c 69 73 74 69 6e 67 20 |ws..6-9.|Listing |
|00001d00| 36 2d 35 09 54 68 65 20 | 48 69 74 54 65 73 74 4c |6-5.The |HitTestL|
|00001d10| 61 79 6f 75 74 43 61 72 | 65 74 20 66 75 6e 63 74 |ayoutCar|et funct|
|00001d20| 69 6f 6e 14 14 36 2d 31 | 30 0d 46 69 67 75 72 65 |ion..6-1|0.Figure|
|00001d30| 20 36 2d 35 09 41 20 6c | 61 79 6f 75 74 20 77 69 | 6-5.A l|ayout wi|
|00001d40| 74 68 20 61 20 63 61 72 | 65 74 14 14 36 2d 31 31 |th a car|et..6-11|
|00001d50| 0d 43 68 61 70 74 65 72 | 20 37 09 50 72 69 6e 74 |.Chapter| 7.Print|
|00001d60| 69 6e 67 14 14 37 2d 31 | 0d 0d 4c 69 73 74 69 6e |ing..7-1|..Listin|
|00001d70| 67 20 37 2d 31 09 54 68 | 65 20 43 72 65 61 74 65 |g 7-1.Th|e Create|
|00001d80| 4e 65 77 50 72 69 6e 74 | 4a 6f 62 20 66 75 6e 63 |NewPrint|Job func|
|00001d90| 74 69 6f 6e 14 14 37 2d | 33 0d 4c 69 73 74 69 6e |tion..7-|3.Listin|
|00001da0| 67 20 37 2d 32 09 54 68 | 65 20 44 69 73 70 6f 73 |g 7-2.Th|e Dispos|
|00001db0| 65 50 72 69 6e 74 4a 6f | 62 20 66 75 6e 63 74 69 |ePrintJo|b functi|
|00001dc0| 6f 6e 14 14 37 2d 34 0d | 46 69 67 75 72 65 20 37 |on..7-4.|Figure 7|
|00001dd0| 2d 31 09 54 68 65 20 44 | 6f 63 75 6d 65 6e 74 20 |-1.The D|ocument |
|00001de0| 53 65 74 75 70 20 64 69 | 61 6c 6f 67 20 62 6f 78 |Setup di|alog box|
|00001df0| 14 14 37 2d 34 0d 4c 69 | 73 74 69 6e 67 20 37 2d |..7-4.Li|sting 7-|
|00001e00| 33 09 54 68 65 20 44 6f | 44 6f 63 75 6d 65 6e 74 |3.The Do|Document|
|00001e10| 53 65 74 55 70 20 66 75 | 6e 63 74 69 6f 6e 14 14 |SetUp fu|nction..|
|00001e20| 37 2d 35 0d 4c 69 73 74 | 69 6e 67 20 37 2d 34 09 |7-5.List|ing 7-4.|
|00001e30| 54 68 65 20 44 6f 50 72 | 69 6e 74 4f 6e 65 43 6f |The DoPr|intOneCo|
|00001e40| 70 79 20 66 75 6e 63 74 | 69 6f 6e 14 14 37 2d 36 |py funct|ion..7-6|
|00001e50| 0d 46 69 67 75 72 65 20 | 37 2d 32 09 54 68 65 20 |.Figure |7-2.The |
|00001e60| 50 72 69 6e 74 20 64 69 | 61 6c 6f 67 20 62 6f 78 |Print di|alog box|
|00001e70| 14 14 37 2d 37 0d 4c 69 | 73 74 69 6e 67 20 37 2d |..7-7.Li|sting 7-|
|00001e80| 35 09 54 68 65 20 44 6f | 50 72 69 6e 74 53 68 61 |5.The Do|PrintSha|
|00001e90| 70 65 20 66 75 6e 63 74 | 69 6f 6e 14 14 37 2d 38 |pe funct|ion..7-8|
|00001ea0| 0d 4c 69 73 74 69 6e 67 | 20 31 2d 30 0d 54 61 62 |.Listing| 1-0.Tab|
|00001eb0| 6c 65 20 31 2d 30 0d 46 | 72 6f 6d 20 51 75 69 63 |le 1-0.F|rom Quic|
|00001ec0| 6b 44 72 61 77 20 74 6f | 20 51 75 69 63 6b 44 72 |kDraw to| QuickDr|
|00001ed0| 61 77 20 47 58 0d 43 6f | 6e 74 65 6e 74 73 0d 41 |aw GX.Co|ntents.A|
|00001ee0| 20 42 72 69 65 66 20 48 | 69 73 74 6f 72 79 20 6f | Brief H|istory o|
|00001ef0| 66 20 51 75 69 63 6b 44 | 72 61 77 14 14 31 2d 33 |f QuickD|raw..1-3|
|00001f00| 0d 47 72 61 70 68 69 63 | 73 20 50 72 6f 67 72 61 |.Graphic|s Progra|
|00001f10| 6d 6d 69 6e 67 20 49 73 | 73 75 65 73 14 14 31 2d |mming Is|sues..1-|
|00001f20| 34 0d 57 68 61 74 20 74 | 6f 20 44 72 61 77 14 14 |4.What t|o Draw..|
|00001f30| 31 2d 35 0d 51 75 69 63 | 6b 44 72 61 77 20 53 68 |1-5.Quic|kDraw Sh|
|00001f40| 61 70 65 73 14 14 31 2d | 35 0d 51 75 69 63 6b 44 |apes..1-|5.QuickD|
|00001f50| 72 61 77 20 47 58 20 53 | 68 61 70 65 73 14 14 31 |raw GX S|hapes..1|
|00001f60| 2d 36 0d 48 6f 77 20 74 | 6f 20 44 72 61 77 14 14 |-6.How t|o Draw..|
|00001f70| 31 2d 39 0d 53 74 79 6c | 65 20 4f 62 6a 65 63 74 |1-9.Styl|e Object|
|00001f80| 73 14 14 31 2d 31 30 0d | 49 6e 6b 20 4f 62 6a 65 |s..1-10.|Ink Obje|
|00001f90| 63 74 73 20 61 6e 64 20 | 43 6f 6c 6f 72 73 14 14 |cts and |Colors..|
|00001fa0| 31 2d 31 32 0d 57 68 65 | 72 65 20 74 6f 20 44 72 |1-12.Whe|re to Dr|
|00001fb0| 61 77 14 14 31 2d 31 33 | 0d 54 72 61 6e 73 66 6f |aw..1-13|.Transfo|
|00001fc0| 72 6d 73 14 14 31 2d 31 | 34 0d 48 6f 77 20 74 6f |rms..1-1|4.How to|
|00001fd0| 20 50 72 6f 67 72 61 6d | 20 49 74 14 14 31 2d 31 | Program| It..1-1|
|00001fe0| 36 0d 46 72 6f 6d 20 51 | 75 69 63 6b 44 72 61 77 |6.From Q|uickDraw|
|00001ff0| 20 74 6f 20 51 75 69 63 | 6b 44 72 61 77 20 47 58 | to Quic|kDraw GX|
|00002000| 0d 54 4f 20 54 48 45 20 | 52 45 41 44 45 52 3a 0d |.TO THE |READER:.|
|00002010| 54 68 69 73 20 62 6f 6f | 6b 20 68 61 73 20 6e 6f |This boo|k has no|
|00002020| 74 20 62 65 65 6e 20 73 | 75 62 73 74 61 6e 74 69 |t been s|ubstanti|
|00002030| 61 6c 6c 79 20 75 70 64 | 61 74 65 64 20 73 69 6e |ally upd|ated sin|
|00002040| 63 65 20 74 68 65 20 70 | 72 65 76 69 6f 75 73 20 |ce the p|revious |
|00002050| 73 65 65 64 20 72 65 6c | 65 61 73 65 2c 20 69 6e |seed rel|ease, in|
|00002060| 20 4d 61 79 20 31 39 39 | 33 2e 20 50 61 72 74 73 | May 199|3. Parts|
|00002070| 20 6f 66 20 69 74 20 61 | 72 65 20 6f 75 74 20 6f | of it a|re out o|
|00002080| 66 20 64 61 74 65 20 61 | 6e 64 20 73 6f 6d 65 20 |f date a|nd some |
|00002090| 63 6f 64 65 20 73 61 6d | 70 6c 65 73 20 61 72 65 |code sam|ples are|
|000020a0| 20 69 6e 63 6f 72 72 65 | 63 74 20 6f 72 20 64 65 | incorre|ct or de|
|000020b0| 6d 6f 6e 73 74 72 61 74 | 65 20 73 75 62 6f 70 74 |monstrat|e subopt|
|000020c0| 69 6d 61 6c 20 63 6f 64 | 69 6e 67 20 74 65 63 68 |imal cod|ing tech|
|000020d0| 6e 69 71 75 65 73 2e 20 | 41 20 6d 61 6a 6f 72 20 |niques. |A major |
|000020e0| 72 65 76 69 73 69 6f 6e | 20 61 6e 64 20 65 78 70 |revision| and exp|
|000020f0| 61 6e 73 69 6f 6e 20 6f | 66 20 74 68 69 73 20 64 |ansion o|f this d|
|00002100| 6f 63 75 6d 65 6e 74 20 | 69 73 20 70 6c 61 6e 6e |ocument |is plann|
|00002110| 65 64 20 62 65 66 6f 72 | 65 20 69 74 73 20 66 69 |ed befor|e its fi|
|00002120| 6e 61 6c 20 72 65 6c 65 | 61 73 65 2e 13 75 0d 51 |nal rele|ase..u.Q|
|00002130| 75 69 63 6b 44 72 61 77 | 20 47 58 20 69 73 20 74 |uickDraw| GX is t|
|00002140| 68 65 20 6e 65 77 20 69 | 6d 61 67 69 6e 67 20 74 |he new i|maging t|
|00002150| 65 63 68 6e 6f 6c 6f 67 | 79 20 66 72 6f 6d 20 41 |echnolog|y from A|
|00002160| 70 70 6c 65 20 43 6f 6d | 70 75 74 65 72 2e 20 49 |pple Com|puter. I|
|00002170| 74 20 69 73 20 6e 6f 74 | 20 61 20 72 65 76 69 73 |t is not| a revis|
|00002180| 69 6f 6e 20 6f 66 20 51 | 75 69 63 6b 44 72 61 77 |ion of Q|uickDraw|
|00002190| 2c 20 62 75 74 20 72 61 | 74 68 65 72 20 61 20 63 |, but ra|ther a c|
|000021a0| 6f 6d 70 6c 65 74 65 20 | 72 65 64 65 73 69 67 6e |omplete |redesign|
|000021b0| 20 6f 66 20 74 68 65 20 | 4d 61 63 69 6e 74 6f 73 | of the |Macintos|
|000021c0| 68 20 67 72 61 70 68 69 | 63 73 20 61 72 63 68 69 |h graphi|cs archi|
|000021d0| 74 65 63 74 75 72 65 2e | 0d 54 68 69 73 20 63 68 |tecture.|.This ch|
|000021e0| 61 70 74 65 72 20 63 6f | 6d 70 61 72 65 73 20 51 |apter co|mpares Q|
|000021f0| 75 69 63 6b 44 72 61 77 | 20 47 58 20 74 6f 20 51 |uickDraw| GX to Q|
|00002200| 75 69 63 6b 44 72 61 77 | 2e 20 54 68 65 20 66 69 |uickDraw|. The fi|
|00002210| 72 73 74 20 73 65 63 74 | 69 6f 6e 2c 20 d2 41 20 |rst sect|ion, .A |
|00002220| 42 72 69 65 66 20 48 69 | 73 74 6f 72 79 20 6f 66 |Brief Hi|story of|
|00002230| 20 51 75 69 63 6b 44 72 | 61 77 2c d3 20 64 69 73 | QuickDr|aw,. dis|
|00002240| 63 75 73 73 65 73 20 68 | 6f 77 20 74 68 65 20 64 |cusses h|ow the d|
|00002250| 65 73 69 67 6e 20 67 6f | 61 6c 73 20 6f 66 20 51 |esign go|als of Q|
|00002260| 75 69 63 6b 44 72 61 77 | 20 68 61 76 65 20 63 68 |uickDraw| have ch|
|00002270| 61 6e 67 65 64 20 77 69 | 74 68 20 65 61 63 68 20 |anged wi|th each |
|00002280| 76 65 72 73 69 6f 6e 2e | 20 0d 54 68 65 20 73 65 |version.| .The se|
|00002290| 63 6f 6e 64 20 73 65 63 | 74 69 6f 6e 2c 20 d2 47 |cond sec|tion, .G|
|000022a0| 72 61 70 68 69 63 73 20 | 50 72 6f 67 72 61 6d 6d |raphics |Programm|
|000022b0| 69 6e 67 20 49 73 73 75 | 65 73 d3 20 6f 6e 20 70 |ing Issu|es. on p|
|000022c0| 61 67 65 20 31 2d 34 2c | 20 69 6e 74 72 6f 64 75 |age 1-4,| introdu|
|000022d0| 63 65 73 20 74 68 65 20 | 62 61 73 69 63 20 63 68 |ces the |basic ch|
|000022e0| 61 6c 6c 65 6e 67 65 73 | 20 69 6e 68 65 72 65 6e |allenges| inheren|
|000022f0| 74 20 69 6e 20 67 72 61 | 70 68 69 63 73 20 70 72 |t in gra|phics pr|
|00002300| 6f 67 72 61 6d 6d 69 6e | 67 2e 20 54 68 65 20 51 |ogrammin|g. The Q|
|00002310| 75 69 63 6b 44 72 61 77 | 20 47 58 20 61 70 70 72 |uickDraw| GX appr|
|00002320| 6f 61 63 68 20 74 6f 20 | 73 6f 6c 76 69 6e 67 20 |oach to |solving |
|00002330| 74 68 65 73 65 20 70 72 | 6f 62 6c 65 6d 73 20 69 |these pr|oblems i|
|00002340| 73 20 63 6f 6d 70 61 72 | 65 64 20 74 6f 20 74 68 |s compar|ed to th|
|00002350| 65 20 51 75 69 63 6b 44 | 72 61 77 20 61 70 70 72 |e QuickD|raw appr|
|00002360| 6f 61 63 68 20 69 6e 20 | 74 68 65 20 73 65 63 74 |oach in |the sect|
|00002370| 69 6f 6e 73 20 d2 57 68 | 61 74 20 74 6f 20 44 72 |ions .Wh|at to Dr|
|00002380| 61 77 d3 20 6f 6e 20 70 | 61 67 65 20 31 2d 35 2c |aw. on p|age 1-5,|
|00002390| 20 d2 48 6f 77 20 74 6f | 20 44 72 61 77 d3 20 6f | .How to| Draw. o|
|000023a0| 6e 20 70 61 67 65 20 31 | 2d 39 2c 20 61 6e 64 20 |n page 1|-9, and |
|000023b0| d2 57 68 65 72 65 20 74 | 6f 20 44 72 61 77 d3 20 |.Where t|o Draw. |
|000023c0| 6f 6e 20 70 61 67 65 20 | 31 2d 31 33 2e 20 0d 54 |on page |1-13. .T|
|000023d0| 68 65 20 66 69 6e 61 6c | 20 73 65 63 74 69 6f 6e |he final| section|
|000023e0| 20 69 6e 20 74 68 69 73 | 20 63 68 61 70 74 65 72 | in this| chapter|
|000023f0| 2c 20 d2 48 6f 77 20 74 | 6f 20 50 72 6f 67 72 61 |, .How t|o Progra|
|00002400| 6d 20 49 74 d3 20 6f 6e | 20 70 61 67 65 20 31 2d |m It. on| page 1-|
|00002410| 31 36 2c 20 6f 75 74 6c | 69 6e 65 73 20 74 68 65 |16, outl|ines the|
|00002420| 20 70 72 6f 67 72 61 6d | 6d 69 6e 67 20 73 75 70 | program|ming sup|
|00002430| 70 6f 72 74 20 69 6e 63 | 6c 75 64 65 64 20 77 69 |port inc|luded wi|
|00002440| 74 68 20 51 75 69 63 6b | 44 72 61 77 20 47 58 2e |th Quick|Draw GX.|
|00002450| 0d 0d 41 20 42 72 69 65 | 66 20 48 69 73 74 6f 72 |..A Brie|f Histor|
|00002460| 79 20 6f 66 20 51 75 69 | 63 6b 44 72 61 77 0d 0d |y of Qui|ckDraw..|
|00002470| 54 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 76 65 72 |The orig|inal ver|
|00002480| 73 69 6f 6e 20 6f 66 20 | 51 75 69 63 6b 44 72 61 |sion of |QuickDra|
|00002490| 77 20 77 61 73 20 64 65 | 73 69 67 6e 65 64 20 74 |w was de|signed t|
|000024a0| 6f 20 61 63 68 69 65 76 | 65 20 74 77 6f 20 73 70 |o achiev|e two sp|
|000024b0| 65 63 69 66 69 63 20 67 | 6f 61 6c 73 3a 0d 6e 09 |ecific g|oals:.n.|
|000024c0| 74 6f 20 70 72 6f 76 69 | 64 65 20 74 68 65 20 67 |to provi|de the g|
|000024d0| 72 61 70 68 69 63 73 20 | 63 61 70 61 62 69 6c 69 |raphics |capabili|
|000024e0| 74 65 73 20 6e 65 63 65 | 73 73 61 72 79 20 66 6f |tes nece|ssary fo|
|000024f0| 72 20 74 68 65 20 6f 72 | 69 67 69 6e 61 6c 20 4d |r the or|iginal M|
|00002500| 61 63 69 6e 74 6f 73 68 | 20 75 73 65 72 20 69 6e |acintosh| user in|
|00002510| 74 65 72 66 61 63 65 0d | 6e 09 74 6f 20 70 72 6f |terface.|n.to pro|
|00002520| 64 75 63 65 20 67 72 61 | 70 68 69 63 73 20 71 75 |duce gra|phics qu|
|00002530| 69 63 6b 6c 79 20 61 6e | 64 20 65 66 66 69 63 69 |ickly an|d effici|
|00002540| 65 6e 74 6c 79 d1 6f 6e | 20 63 6f 6d 70 75 74 65 |ently.on| compute|
|00002550| 72 20 68 61 72 64 77 61 | 72 65 20 74 68 61 74 2c |r hardwa|re that,|
|00002560| 20 62 79 20 74 6f 64 61 | 79 d5 73 20 73 74 61 6e | by toda|y.s stan|
|00002570| 64 61 72 64 73 2c 20 77 | 61 73 20 71 75 69 74 65 |dards, w|as quite|
|00002580| 20 6c 69 6d 69 74 65 64 | 0d 54 68 65 20 6f 72 69 | limited|.The ori|
|00002590| 67 69 6e 61 6c 20 51 75 | 69 63 6b 44 72 61 77 20 |ginal Qu|ickDraw |
|000025a0| 63 6f 75 6c 64 20 70 72 | 6f 64 75 63 65 20 74 68 |could pr|oduce th|
|000025b0| 65 20 6b 69 6e 64 73 20 | 6f 66 20 67 72 61 70 68 |e kinds |of graph|
|000025c0| 69 63 73 20 72 65 71 75 | 69 72 65 64 20 66 6f 72 |ics requ|ired for|
|000025d0| 20 74 68 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 75 | the Mac|intosh u|
|000025e0| 73 65 72 20 69 6e 74 65 | 72 66 61 63 65 3a 20 72 |ser inte|rface: r|
|000025f0| 65 63 74 61 6e 67 6c 65 | 73 20 66 6f 72 20 77 69 |ectangle|s for wi|
|00002600| 6e 64 6f 77 73 2c 20 72 | 6f 75 6e 64 20 72 65 63 |ndows, r|ound rec|
|00002610| 74 61 6e 67 6c 65 73 20 | 66 6f 72 20 62 75 74 74 |tangles |for butt|
|00002620| 6f 6e 73 2c 20 70 61 74 | 74 65 72 6e 73 20 66 6f |ons, pat|terns fo|
|00002630| 72 20 74 68 65 20 64 65 | 73 6b 74 6f 70 2c 20 61 |r the de|sktop, a|
|00002640| 6e 64 20 73 6f 20 6f 6e | 2e 20 49 6e 20 74 68 65 |nd so on|. In the|
|00002650| 20 69 6e 74 65 72 65 73 | 74 20 6f 66 20 73 70 65 | interes|t of spe|
|00002660| 65 64 2c 20 74 68 65 20 | 73 63 6f 70 65 20 6f 66 |ed, the |scope of|
|00002670| 20 74 68 65 20 6f 72 69 | 67 69 6e 61 6c 20 51 75 | the ori|ginal Qu|
|00002680| 69 63 6b 44 72 61 77 20 | 64 69 64 20 6e 6f 74 20 |ickDraw |did not |
|00002690| 69 6e 63 6c 75 64 65 20 | 6d 61 6e 79 20 61 64 76 |include |many adv|
|000026a0| 61 6e 63 65 64 20 67 72 | 61 70 68 69 63 73 20 63 |anced gr|aphics c|
|000026b0| 61 70 61 62 69 6c 69 74 | 69 65 73 2e 0d 54 6f 20 |apabilit|ies..To |
|000026c0| 61 64 64 72 65 73 73 20 | 73 6f 6d 65 20 6f 66 20 |address |some of |
|000026d0| 74 68 65 73 65 20 6c 69 | 6d 69 74 61 74 69 6f 6e |these li|mitation|
|000026e0| 73 2c 20 41 70 70 6c 65 | 20 68 61 73 20 72 65 6c |s, Apple| has rel|
|000026f0| 65 61 73 65 64 20 74 77 | 6f 20 6d 61 6a 6f 72 20 |eased tw|o major |
|00002700| 72 65 76 69 73 69 6f 6e | 73 20 6f 66 20 51 75 69 |revision|s of Qui|
|00002710| 63 6b 44 72 61 77 3a 20 | 43 6f 6c 6f 72 20 51 75 |ckDraw: |Color Qu|
|00002720| 69 63 6b 44 72 61 77 2c | 20 77 68 69 63 68 20 61 |ickDraw,| which a|
|00002730| 64 64 65 64 20 63 6f 6c | 6f 72 20 63 61 70 61 62 |dded col|or capab|
|00002740| 69 6c 69 74 69 65 73 2c | 20 61 6e 64 20 33 32 2d |ilities,| and 32-|
|00002750| 62 69 74 20 51 75 69 63 | 6b 44 72 61 77 2c 20 77 |bit Quic|kDraw, w|
|00002760| 68 69 63 68 20 73 75 70 | 70 6f 72 74 73 20 74 72 |hich sup|ports tr|
|00002770| 75 65 20 63 6f 6c 6f 72 | 2e 20 42 6f 74 68 20 43 |ue color|. Both C|
|00002780| 6f 6c 6f 72 20 51 75 69 | 63 6b 44 72 61 77 20 61 |olor Qui|ckDraw a|
|00002790| 6e 64 20 33 32 2d 62 69 | 74 20 51 75 69 63 6b 44 |nd 32-bi|t QuickD|
|000027a0| 72 61 77 20 61 72 65 20 | 65 78 74 65 6e 73 69 6f |raw are |extensio|
|000027b0| 6e 73 20 6f 66 20 74 68 | 65 20 6f 72 69 67 69 6e |ns of th|e origin|
|000027c0| 61 6c 20 51 75 69 63 6b | 44 72 61 77 d1 74 68 61 |al Quick|Draw.tha|
|000027d0| 74 20 69 73 2c 20 74 68 | 65 79 20 73 68 61 72 65 |t is, th|ey share|
|000027e0| 20 74 68 65 20 62 61 73 | 69 63 20 61 72 63 68 69 | the bas|ic archi|
|000027f0| 74 65 63 74 75 72 65 20 | 6f 66 20 74 68 65 20 6f |tecture |of the o|
|00002800| 72 69 67 69 6e 61 6c 20 | 51 75 69 63 6b 44 72 61 |riginal |QuickDra|
|00002810| 77 2c 20 65 61 63 68 20 | 61 64 64 69 6e 67 20 6e |w, each |adding n|
|00002820| 65 77 20 63 61 70 61 62 | 69 6c 69 74 69 65 73 2e |ew capab|ilities.|
|00002830| 0d 43 6f 6c 6f 72 20 51 | 75 69 63 6b 44 72 61 77 |.Color Q|uickDraw|
|00002840| 20 69 6e 20 53 79 73 74 | 65 6d 20 37 20 75 6e 69 | in Syst|em 7 uni|
|00002850| 66 69 65 64 20 74 68 65 | 20 70 72 65 76 69 6f 75 |fied the| previou|
|00002860| 73 20 76 65 72 73 69 6f | 6e 73 20 61 6e 64 20 70 |s versio|ns and p|
|00002870| 72 6f 76 69 64 65 64 20 | 73 6f 6d 65 20 61 64 64 |rovided |some add|
|00002880| 69 74 69 6f 6e 61 6c 20 | 63 61 70 61 62 69 6c 69 |itional |capabili|
|00002890| 74 65 73 2c 20 62 75 74 | 20 69 74 20 77 61 73 20 |tes, but| it was |
|000028a0| 62 61 73 65 64 20 6f 6e | 20 74 68 65 20 6f 72 69 |based on| the ori|
|000028b0| 67 69 6e 61 6c 20 51 75 | 69 63 6b 44 72 61 77 20 |ginal Qu|ickDraw |
|000028c0| 61 72 63 68 69 74 65 63 | 74 75 72 65 20 61 73 20 |architec|ture as |
|000028d0| 77 65 6c 6c 2e 0d 57 69 | 74 68 20 51 75 69 63 6b |well..Wi|th Quick|
|000028e0| 44 72 61 77 20 47 58 2c | 20 41 70 70 6c 65 20 69 |Draw GX,| Apple i|
|000028f0| 73 20 70 72 6f 76 69 64 | 69 6e 67 20 61 6e 20 65 |s provid|ing an e|
|00002900| 6e 74 69 72 65 6c 79 20 | 6e 65 77 20 67 72 61 70 |ntirely |new grap|
|00002910| 68 69 63 73 20 61 72 63 | 68 69 74 65 63 74 75 72 |hics arc|hitectur|
|00002920| 65 d1 61 6e 64 20 61 20 | 67 72 65 61 74 20 6e 75 |e.and a |great nu|
|00002930| 6d 62 65 72 20 6f 66 20 | 6e 65 77 20 67 72 61 70 |mber of |new grap|
|00002940| 68 69 63 73 20 63 61 70 | 61 62 69 6c 69 74 69 65 |hics cap|abilitie|
|00002950| 73 2e 20 51 75 69 63 6b | 44 72 61 77 20 47 58 20 |s. Quick|Draw GX |
|00002960| 69 73 20 72 65 6c 61 74 | 65 64 20 74 6f 20 74 68 |is relat|ed to th|
|00002970| 65 20 65 61 72 6c 69 65 | 72 20 76 65 72 73 69 6f |e earlie|r versio|
|00002980| 6e 73 20 6f 66 20 51 75 | 69 63 6b 44 72 61 77 20 |ns of Qu|ickDraw |
|00002990| 6e 6f 74 20 69 6e 20 74 | 68 65 20 64 65 73 69 67 |not in t|he desig|
|000029a0| 6e 20 6f 66 20 74 68 65 | 20 61 72 63 68 69 74 65 |n of the| archite|
|000029b0| 63 74 75 72 65 2c 20 62 | 75 74 20 72 61 74 68 65 |cture, b|ut rathe|
|000029c0| 72 20 69 6e 20 6f 76 65 | 72 61 6c 6c 20 6f 62 6a |r in ove|rall obj|
|000029d0| 65 63 74 69 76 65 2e 20 | 51 75 69 63 6b 44 72 61 |ective. |QuickDra|
|000029e0| 77 20 47 58 20 68 61 73 | 20 64 65 73 69 67 6e 20 |w GX has| design |
|000029f0| 67 6f 61 6c 73 20 73 69 | 6d 69 6c 61 72 20 74 6f |goals si|milar to|
|00002a00| 20 74 68 65 20 64 65 73 | 69 67 6e 20 67 6f 61 6c | the des|ign goal|
|00002a10| 73 20 66 6f 72 20 51 75 | 69 63 6b 44 72 61 77 3a |s for Qu|ickDraw:|
|00002a20| 0d 6e 09 74 6f 20 70 72 | 6f 76 69 64 65 20 74 68 |.n.to pr|ovide th|
|00002a30| 65 20 73 6f 70 68 69 73 | 74 69 63 61 74 65 64 20 |e sophis|ticated |
|00002a40| 67 72 61 70 68 69 63 73 | 20 63 61 70 61 62 69 6c |graphics| capabil|
|00002a50| 69 74 65 73 20 6e 65 63 | 65 73 73 61 72 79 20 66 |ites nec|essary f|
|00002a60| 6f 72 20 74 68 65 20 67 | 72 61 70 68 69 63 61 6c |or the g|raphical|
|00002a70| 20 75 73 65 72 20 69 6e | 74 65 72 66 61 63 65 20 | user in|terface |
|00002a80| 6f 66 20 74 68 65 20 4d | 61 63 69 6e 74 6f 73 68 |of the M|acintosh|
|00002a90| 0d 6e 09 74 6f 20 70 72 | 6f 64 75 63 65 20 74 68 |.n.to pr|oduce th|
|00002aa0| 65 73 65 20 73 6f 70 68 | 69 73 74 69 63 61 74 65 |ese soph|isticate|
|00002ab0| 64 20 67 72 61 70 68 69 | 63 73 20 71 75 69 63 6b |d graphi|cs quick|
|00002ac0| 6c 79 20 61 6e 64 20 65 | 66 66 69 63 69 65 6e 74 |ly and e|fficient|
|00002ad0| 6c 79 0d 49 6e 20 61 64 | 64 69 74 69 6f 6e 2c 20 |ly.In ad|dition, |
|00002ae0| 74 68 65 20 51 75 69 63 | 6b 44 72 61 77 20 47 58 |the Quic|kDraw GX|
|00002af0| 20 64 65 73 69 67 6e 20 | 68 61 73 20 61 64 64 72 | design |has addr|
|00002b00| 65 73 73 65 64 20 73 6f | 6d 65 20 6e 65 77 20 67 |essed so|me new g|
|00002b10| 6f 61 6c 73 3a 0d 6e 09 | 74 6f 20 70 72 6f 76 69 |oals:.n.|to provi|
|00002b20| 64 65 20 61 20 6c 61 72 | 67 65 72 20 73 65 74 20 |de a lar|ger set |
|00002b30| 6f 66 20 62 61 73 69 63 | 20 67 72 61 70 68 69 63 |of basic| graphic|
|00002b40| 73 20 6f 62 6a 65 63 74 | 73 0d 6e 09 74 6f 20 70 |s object|s.n.to p|
|00002b50| 72 6f 76 69 64 65 20 61 | 20 63 6f 6e 73 69 73 74 |rovide a| consist|
|00002b60| 65 6e 74 20 70 72 6f 67 | 72 61 6d 6d 69 6e 67 20 |ent prog|ramming |
|00002b70| 69 6e 74 65 72 66 61 63 | 65 20 74 6f 20 74 68 6f |interfac|e to tho|
|00002b80| 73 65 20 6f 62 6a 65 63 | 74 73 0d 6e 09 74 6f 20 |se objec|ts.n.to |
|00002b90| 70 72 6f 76 69 64 65 20 | 64 65 76 69 63 65 2d 69 |provide |device-i|
|00002ba0| 6e 64 65 70 65 6e 64 65 | 6e 74 20 67 72 61 70 68 |ndepende|nt graph|
|00002bb0| 69 63 73 0d 6e 09 74 6f | 20 70 72 6f 76 69 64 65 |ics.n.to| provide|
|00002bc0| 20 75 73 65 66 75 6c 20 | 70 72 6f 67 72 61 6d 6d | useful |programm|
|00002bd0| 69 6e 67 20 74 6f 6f 6c | 73 20 66 6f 72 20 61 70 |ing tool|s for ap|
|00002be0| 70 6c 69 63 61 74 69 6f | 6e 20 64 65 76 65 6c 6f |plicatio|n develo|
|00002bf0| 70 65 72 73 d1 74 6f 6f | 6c 73 20 66 6f 72 20 64 |pers.too|ls for d|
|00002c00| 65 62 75 67 67 69 6e 67 | 20 61 6e 64 20 65 72 72 |ebugging| and err|
|00002c10| 6f 72 20 68 61 6e 64 6c | 69 6e 67 2c 20 66 6f 72 |or handl|ing, for|
|00002c20| 20 65 78 61 6d 70 6c 65 | 0d 6e 09 74 6f 20 70 72 | example|.n.to pr|
|00002c30| 6f 76 69 64 65 20 61 20 | 72 75 6e 74 69 6d 65 20 |ovide a |runtime |
|00002c40| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 20 74 68 61 74 |environm|ent that|
|00002c50| 20 73 75 70 70 6f 72 74 | 73 20 66 61 73 74 20 67 | support|s fast g|
|00002c60| 72 61 70 68 69 63 73 20 | 77 69 74 68 20 6d 61 6e |raphics |with man|
|00002c70| 79 20 74 79 70 65 73 20 | 6f 66 20 67 72 61 70 68 |y types |of graph|
|00002c80| 69 63 73 20 6f 62 6a 65 | 63 74 73 0d 6e 09 74 6f |ics obje|cts.n.to|
|00002c90| 20 70 72 6f 76 69 64 65 | 20 63 6f 6e 73 69 73 74 | provide| consist|
|00002ca0| 65 6e 74 20 70 72 69 6e | 74 69 6e 67 20 66 6f 72 |ent prin|ting for|
|00002cb0| 20 61 6c 6c 20 67 72 61 | 70 68 69 63 73 20 6f 62 | all gra|phics ob|
|00002cc0| 6a 65 63 74 73 0d 53 6f | 2c 20 77 68 65 72 65 20 |jects.So|, where |
|00002cd0| 65 61 72 6c 69 65 72 20 | 76 65 72 73 69 6f 6e 73 |earlier |versions|
|00002ce0| 20 6f 66 20 51 75 69 63 | 6b 44 72 61 77 20 6f 66 | of Quic|kDraw of|
|00002cf0| 66 65 72 20 6f 6e 65 20 | 73 65 74 20 6f 66 20 73 |fer one |set of s|
|00002d00| 6f 6c 75 74 69 6f 6e 73 | 20 74 6f 20 63 6f 6d 6d |olutions| to comm|
|00002d10| 6f 6e 20 67 72 61 70 68 | 69 63 73 20 70 72 6f 67 |on graph|ics prog|
|00002d20| 72 61 6d 6d 69 6e 67 20 | 69 73 73 75 65 73 2c 20 |ramming |issues, |
|00002d30| 51 75 69 63 6b 44 72 61 | 77 20 47 58 20 6f 66 66 |QuickDra|w GX off|
|00002d40| 65 72 73 20 61 6e 6f 74 | 68 65 72 2e 20 54 68 65 |ers anot|her. The|
|00002d50| 20 72 65 73 74 20 6f 66 | 20 74 68 69 73 20 63 68 | rest of| this ch|
|00002d60| 61 70 74 65 72 20 64 69 | 73 63 75 73 73 65 73 20 |apter di|scusses |
|00002d70| 74 68 65 73 65 20 63 6f | 6d 6d 6f 6e 20 67 72 61 |these co|mmon gra|
|00002d80| 70 68 69 63 73 20 70 72 | 6f 67 72 61 6d 6d 69 6e |phics pr|ogrammin|
|00002d90| 67 20 69 73 73 75 65 73 | 20 61 6e 64 20 63 6f 6d |g issues| and com|
|00002da0| 70 61 72 65 73 20 74 68 | 65 20 51 75 69 63 6b 44 |pares th|e QuickD|
|00002db0| 72 61 77 20 47 58 20 61 | 70 70 72 6f 61 63 68 20 |raw GX a|pproach |
|00002dc0| 74 6f 20 74 68 65 20 51 | 75 69 63 6b 44 72 61 77 |to the Q|uickDraw|
|00002dd0| 20 61 70 70 72 6f 61 63 | 68 2e 0d 0d 47 72 61 70 | approac|h...Grap|
|00002de0| 68 69 63 73 20 50 72 6f | 67 72 61 6d 6d 69 6e 67 |hics Pro|gramming|
|00002df0| 20 49 73 73 75 65 73 0d | 0d 41 6e 79 20 67 72 61 | Issues.|.Any gra|
|00002e00| 70 68 69 63 73 20 65 6e | 76 69 72 6f 6e 6d 65 6e |phics en|vironmen|
|00002e10| 74 20 6d 75 73 74 20 70 | 72 6f 76 69 64 65 20 61 |t must p|rovide a|
|00002e20| 20 6d 65 63 68 61 6e 69 | 73 6d 20 66 6f 72 20 79 | mechani|sm for y|
|00002e30| 6f 75 2c 20 61 73 20 61 | 20 67 72 61 70 68 69 63 |ou, as a| graphic|
|00002e40| 73 20 70 72 6f 67 72 61 | 6d 6d 65 72 2c 20 74 6f |s progra|mmer, to|
|00002e50| 20 73 70 65 63 69 66 79 | 20 74 68 72 65 65 20 74 | specify| three t|
|00002e60| 68 69 6e 67 73 3a 0d 6e | 09 57 68 61 74 20 74 6f |hings:.n|.What to|
|00002e70| 20 64 72 61 77 2e 20 59 | 6f 75 20 6d 75 73 74 20 | draw. Y|ou must |
|00002e80| 62 65 20 61 62 6c 65 20 | 74 6f 20 64 65 66 69 6e |be able |to defin|
|00002e90| 65 20 74 68 65 20 6f 62 | 6a 65 63 74 20 74 6f 20 |e the ob|ject to |
|00002ea0| 64 72 61 77 2c 20 77 68 | 69 63 68 20 6d 69 67 68 |draw, wh|ich migh|
|00002eb0| 74 20 69 6e 63 6c 75 64 | 65 20 73 70 65 63 69 66 |t includ|e specif|
|00002ec0| 79 69 6e 67 20 63 6f 6e | 74 72 6f 6c 20 70 6f 69 |ying con|trol poi|
|00002ed0| 6e 74 73 20 28 6c 69 6b | 65 20 74 68 65 20 62 65 |nts (lik|e the be|
|00002ee0| 67 69 6e 6e 69 6e 67 20 | 61 6e 64 20 65 6e 64 20 |ginning |and end |
|00002ef0| 6f 66 20 61 20 6c 69 6e | 65 29 2c 20 73 70 65 63 |of a lin|e), spec|
|00002f00| 69 66 79 69 6e 67 20 63 | 68 61 72 61 63 74 65 72 |ifying c|haracter|
|00002f10| 73 20 28 77 68 65 6e 20 | 64 72 61 77 69 6e 67 20 |s (when |drawing |
|00002f20| 74 65 78 74 29 2c 20 6f | 72 20 73 70 65 63 69 66 |text), o|r specif|
|00002f30| 79 69 6e 67 20 62 69 74 | 20 70 61 74 74 65 72 6e |ying bit| pattern|
|00002f40| 73 20 28 77 68 65 6e 20 | 64 72 61 77 69 6e 67 20 |s (when |drawing |
|00002f50| 62 69 74 6d 61 70 73 29 | 2e 0d 6e 09 48 6f 77 20 |bitmaps)|..n.How |
|00002f60| 74 6f 20 64 72 61 77 20 | 69 74 2e 20 41 20 66 75 |to draw |it. A fu|
|00002f70| 6c 6c 2d 66 65 61 74 75 | 72 65 64 20 67 72 61 70 |ll-featu|red grap|
|00002f80| 68 69 63 73 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |hics env|ironment|
|00002f90| 20 73 68 6f 75 6c 64 20 | 61 6c 6c 6f 77 20 79 6f | should |allow yo|
|00002fa0| 75 20 74 6f 20 61 70 70 | 6c 79 20 61 20 6e 75 6d |u to app|ly a num|
|00002fb0| 62 65 72 20 6f 66 20 73 | 74 79 6c 69 73 74 69 63 |ber of s|tylistic|
|00002fc0| 20 61 6e 64 20 6f 74 68 | 65 72 20 76 61 72 69 61 | and oth|er varia|
|00002fd0| 74 69 6f 6e 73 20 74 6f | 20 79 6f 75 72 20 67 72 |tions to| your gr|
|00002fe0| 61 70 68 69 63 73 20 6f | 62 6a 65 63 74 73 2e 20 |aphics o|bjects. |
|00002ff0| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 79 6f 75 |For exam|ple, you|
|00003000| 20 6d 69 67 68 74 20 77 | 61 6e 74 20 74 6f 20 73 | might w|ant to s|
|00003010| 70 65 63 69 66 79 20 68 | 6f 77 20 74 68 69 63 6b |pecify h|ow thick|
|00003020| 20 61 6e 20 6f 62 6a 65 | 63 74 d5 73 20 62 6f 72 | an obje|ct.s bor|
|00003030| 64 65 72 20 73 68 6f 75 | 6c 64 20 62 65 2c 20 77 |der shou|ld be, w|
|00003040| 68 61 74 20 70 61 74 74 | 65 72 6e 20 73 68 6f 75 |hat patt|ern shou|
|00003050| 6c 64 20 66 69 6c 6c 20 | 61 6e 20 6f 62 6a 65 63 |ld fill |an objec|
|00003060| 74 2c 20 6f 72 20 77 68 | 61 74 20 63 6f 6c 6f 72 |t, or wh|at color|
|00003070| 20 61 6e 20 6f 62 6a 65 | 63 74 20 73 68 6f 75 6c | an obje|ct shoul|
|00003080| 64 20 62 65 2e 0d 6e 09 | 57 68 65 72 65 20 74 6f |d be..n.|Where to|
|00003090| 20 64 72 61 77 20 69 74 | 2e 20 59 6f 75 20 61 6c | draw it|. You al|
|000030a0| 73 6f 20 6e 65 65 64 20 | 74 6f 20 73 70 65 63 69 |so need |to speci|
|000030b0| 66 79 20 77 68 65 72 65 | 20 74 68 65 20 67 72 61 |fy where| the gra|
|000030c0| 70 68 69 63 20 73 68 6f | 75 6c 64 20 62 65 20 64 |phic sho|uld be d|
|000030d0| 72 61 77 6e 3a 20 77 68 | 61 74 20 73 70 61 74 69 |rawn: wh|at spati|
|000030e0| 61 6c 20 72 65 6c 61 74 | 69 6f 6e 20 69 74 20 73 |al relat|ion it s|
|000030f0| 68 6f 75 6c 64 20 68 61 | 76 65 20 74 6f 20 6f 74 |hould ha|ve to ot|
|00003100| 68 65 72 20 67 72 61 70 | 68 69 63 73 20 6f 62 6a |her grap|hics obj|
|00003110| 65 63 74 73 20 61 6e 64 | 20 6f 6e 20 77 68 61 74 |ects and| on what|
|00003120| 20 64 65 76 69 63 65 20 | 69 74 20 73 68 6f 75 6c | device |it shoul|
|00003130| 64 20 61 63 74 75 61 6c | 6c 79 20 62 65 20 72 65 |d actual|ly be re|
|00003140| 6e 64 65 72 65 64 2e 0d | 54 68 65 72 65 d5 73 20 |ndered..|There.s |
|00003150| 61 20 66 6f 75 72 74 68 | 20 63 6f 6e 63 65 72 6e |a fourth| concern|
|00003160| 20 6f 66 20 66 75 6c 6c | 2d 66 65 61 74 75 72 65 | of full|-feature|
|00003170| 64 20 67 72 61 70 68 69 | 63 73 20 65 6e 76 69 72 |d graphi|cs envir|
|00003180| 6f 6e 6d 65 6e 74 73 20 | 61 73 20 77 65 6c 6c 3a |onments |as well:|
|00003190| 0d 6e 09 48 6f 77 20 74 | 6f 20 70 72 6f 67 72 61 |.n.How t|o progra|
|000031a0| 6d 20 69 74 2e 20 41 20 | 67 72 61 70 68 69 63 73 |m it. A |graphics|
|000031b0| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 6e 65 65 | environ|ment nee|
|000031c0| 64 73 20 74 6f 20 70 72 | 6f 76 69 64 65 20 70 72 |ds to pr|ovide pr|
|000031d0| 6f 67 72 61 6d 6d 69 6e | 67 20 74 6f 6f 6c 73 20 |ogrammin|g tools |
|000031e0| 28 73 75 63 68 20 61 73 | 20 64 65 62 75 67 67 69 |(such as| debuggi|
|000031f0| 6e 67 20 74 6f 6f 6c 73 | 29 20 61 6e 64 20 64 65 |ng tools|) and de|
|00003200| 76 65 6c 6f 70 6d 65 6e | 74 20 61 6e 64 20 72 75 |velopmen|t and ru|
|00003210| 6e 74 69 6d 65 20 65 6e | 76 69 72 6f 6e 6d 65 6e |ntime en|vironmen|
|00003220| 74 73 20 74 68 61 74 20 | 73 75 70 70 6f 72 74 20 |ts that |support |
|00003230| 74 68 65 20 67 72 61 70 | 68 69 63 73 20 70 72 6f |the grap|hics pro|
|00003240| 67 72 61 6d 6d 69 6e 67 | 20 70 72 6f 63 65 73 73 |gramming| process|
|00003250| 2e 0d 54 68 65 20 6e 65 | 78 74 20 74 68 72 65 65 |..The ne|xt three|
|00003260| 20 73 65 63 74 69 6f 6e | 73 20 64 69 73 63 75 73 | section|s discus|
|00003270| 73 20 74 68 65 20 74 68 | 72 65 65 20 64 72 61 77 |s the th|ree draw|
|00003280| 69 6e 67 20 69 73 73 75 | 65 73 20 61 6e 64 20 68 |ing issu|es and h|
|00003290| 6f 77 20 74 68 65 20 51 | 75 69 63 6b 44 72 61 77 |ow the Q|uickDraw|
|000032a0| 20 47 58 20 61 70 70 72 | 6f 61 63 68 20 64 69 66 | GX appr|oach dif|
|000032b0| 66 65 72 73 20 66 72 6f | 6d 20 74 68 65 20 6f 72 |fers fro|m the or|
|000032c0| 69 67 69 6e 61 6c 20 51 | 75 69 63 6b 44 72 61 77 |iginal Q|uickDraw|
|000032d0| 20 61 70 70 72 6f 61 63 | 68 2c 20 61 6e 64 20 74 | approac|h, and t|
|000032e0| 68 65 20 66 69 6e 61 6c | 20 73 65 63 74 69 6f 6e |he final| section|
|000032f0| 20 69 6e 20 74 68 69 73 | 20 63 68 61 70 74 65 72 | in this| chapter|
|00003300| 20 64 69 73 63 75 73 73 | 65 73 20 74 68 65 20 70 | discuss|es the p|
|00003310| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 73 75 70 70 6f |rogrammi|ng suppo|
|00003320| 72 74 20 69 6e 63 6c 75 | 64 65 64 20 77 69 74 68 |rt inclu|ded with|
|00003330| 20 51 75 69 63 6b 44 72 | 61 77 20 47 58 2e 0d 0d | QuickDr|aw GX...|
|00003340| 57 68 61 74 20 74 6f 20 | 44 72 61 77 0d 0d 46 72 |What to |Draw..Fr|
|00003350| 6f 6d 20 61 20 70 72 6f | 67 72 61 6d 6d 65 72 d5 |om a pro|grammer.|
|00003360| 73 20 70 6f 69 6e 74 20 | 6f 66 20 76 69 65 77 2c |s point |of view,|
|00003370| 20 74 68 65 20 6d 6f 73 | 74 20 66 75 6e 64 61 6d | the mos|t fundam|
|00003380| 65 6e 74 61 6c 20 64 69 | 66 66 65 72 65 6e 63 65 |ental di|fference|
|00003390| 20 62 65 74 77 65 65 6e | 20 74 68 65 20 51 75 69 | between| the Qui|
|000033a0| 63 6b 44 72 61 77 20 61 | 72 63 68 69 74 65 63 74 |ckDraw a|rchitect|
|000033b0| 75 72 65 20 61 6e 64 20 | 74 68 65 20 51 75 69 63 |ure and |the Quic|
|000033c0| 6b 44 72 61 77 20 47 58 | 20 61 72 63 68 69 74 65 |kDraw GX| archite|
|000033d0| 63 74 75 72 65 20 69 73 | 20 74 68 65 20 77 61 79 |cture is| the way|
|000033e0| 20 79 6f 75 20 64 65 73 | 63 72 69 62 65 20 74 68 | you des|cribe th|
|000033f0| 65 20 67 72 61 70 68 69 | 63 73 20 73 68 61 70 65 |e graphi|cs shape|
|00003400| 73 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 64 72 |s you wa|nt to dr|
|00003410| 61 77 2e 0d 51 75 69 63 | 6b 44 72 61 77 20 47 58 |aw..Quic|kDraw GX|
|00003420| 20 6d 61 6b 65 73 20 61 | 6e 20 69 6d 70 6f 72 74 | makes a|n import|
|00003430| 61 6e 74 20 69 6d 70 72 | 6f 76 65 6d 65 6e 74 20 |ant impr|ovement |
|00003440| 6f 6e 20 51 75 69 63 6b | 44 72 61 77 20 69 6e 20 |on Quick|Draw in |
|00003450| 74 68 69 73 20 72 65 67 | 61 72 64 2e 20 57 68 65 |this reg|ard. Whe|
|00003460| 72 65 20 74 68 65 20 65 | 61 72 6c 69 65 72 20 51 |re the e|arlier Q|
|00003470| 75 69 63 6b 44 72 61 77 | 20 61 72 63 68 69 74 65 |uickDraw| archite|
|00003480| 63 74 75 72 65 20 73 6f | 6d 65 74 69 6d 65 73 20 |cture so|metimes |
|00003490| 6d 75 64 64 69 65 73 20 | 74 68 65 20 64 69 73 74 |muddies |the dist|
|000034a0| 69 6e 63 74 69 6f 6e 20 | 62 65 74 77 65 65 6e 20 |inction |between |
|000034b0| 64 65 66 69 6e 69 6e 67 | 20 61 20 73 68 61 70 65 |defining| a shape|
|000034c0| 20 61 6e 64 20 64 72 61 | 77 69 6e 67 20 61 20 73 | and dra|wing a s|
|000034d0| 68 61 70 65 2c 20 51 75 | 69 63 6b 44 72 61 77 20 |hape, Qu|ickDraw |
|000034e0| 47 58 20 6b 65 65 70 73 | 20 74 68 65 73 65 20 74 |GX keeps| these t|
|000034f0| 61 73 6b 73 20 63 6c 65 | 61 72 6c 79 20 73 65 70 |asks cle|arly sep|
|00003500| 61 72 61 74 65 64 2e 20 | 0d 54 6f 20 69 6c 6c 75 |arated. |.To illu|
|00003510| 73 74 72 61 74 65 20 74 | 68 69 73 20 64 69 73 74 |strate t|his dist|
|00003520| 69 6e 63 74 69 6f 6e 2c | 20 74 68 65 20 6e 65 78 |inction,| the nex|
|00003530| 74 20 73 65 63 74 69 6f | 6e 2c 20 d2 51 75 69 63 |t sectio|n, .Quic|
|00003540| 6b 44 72 61 77 20 53 68 | 61 70 65 73 2c d3 20 65 |kDraw Sh|apes,. e|
|00003550| 78 61 6d 69 6e 65 73 20 | 68 6f 77 20 79 6f 75 20 |xamines |how you |
|00003560| 64 65 66 69 6e 65 20 73 | 68 61 70 65 73 20 77 69 |define s|hapes wi|
|00003570| 74 68 20 51 75 69 63 6b | 44 72 61 77 20 61 6e 64 |th Quick|Draw and|
|00003580| 20 74 68 65 20 73 65 63 | 74 69 6f 6e 20 d2 51 75 | the sec|tion .Qu|
|00003590| 69 63 6b 44 72 61 77 20 | 47 58 20 53 68 61 70 65 |ickDraw |GX Shape|
|000035a0| 73 2c d3 20 6f 6e 20 70 | 61 67 65 20 31 2d 36 2c |s,. on p|age 1-6,|
|000035b0| 20 65 78 61 6d 69 6e 65 | 73 20 68 6f 77 20 79 6f | examine|s how yo|
|000035c0| 75 20 64 65 66 69 6e 65 | 20 74 68 65 6d 20 77 69 |u define| them wi|
|000035d0| 74 68 20 51 75 69 63 6b | 44 72 61 77 20 47 58 2e |th Quick|Draw GX.|
|000035e0| 0d 51 75 69 63 6b 44 72 | 61 77 20 53 68 61 70 65 |.QuickDr|aw Shape|
|000035f0| 73 0d 0d 49 6e 20 74 68 | 65 20 65 61 72 6c 69 65 |s..In th|e earlie|
|00003600| 72 20 76 65 72 73 69 6f | 6e 73 20 6f 66 20 51 75 |r versio|ns of Qu|
|00003610| 69 63 6b 44 72 61 77 2c | 20 74 68 65 20 77 61 79 |ickDraw,| the way|
|00003620| 20 79 6f 75 20 64 65 66 | 69 6e 65 20 61 20 73 68 | you def|ine a sh|
|00003630| 61 70 65 20 64 65 70 65 | 6e 64 73 20 6f 6e 20 77 |ape depe|nds on w|
|00003640| 68 61 74 20 74 79 70 65 | 20 6f 66 20 73 68 61 70 |hat type| of shap|
|00003650| 65 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 64 72 |e you wa|nt to dr|
|00003660| 61 77 2e 0d 54 68 65 20 | 70 72 6f 63 65 64 75 72 |aw..The |procedur|
|00003670| 61 6c 6c 79 20 64 72 61 | 77 6e 20 73 68 61 70 65 |ally dra|wn shape|
|00003680| 73 20 64 6f 6e d5 74 20 | 72 65 71 75 69 72 65 20 |s don.t |require |
|00003690| 61 6e 20 65 78 70 6c 69 | 63 69 74 20 64 61 74 61 |an expli|cit data|
|000036a0| 20 73 74 72 75 63 74 75 | 72 65 d1 74 68 65 20 73 | structu|re.the s|
|000036b0| 68 61 70 65 20 69 73 20 | 64 65 66 69 6e 65 64 20 |hape is |defined |
|000036c0| 73 6f 6c 65 6c 79 20 62 | 79 20 63 61 6c 6c 69 6e |solely b|y callin|
|000036d0| 67 20 64 72 61 77 69 6e | 67 20 72 6f 75 74 69 6e |g drawin|g routin|
|000036e0| 65 73 2e 20 54 6f 20 64 | 72 61 77 20 61 20 6c 69 |es. To d|raw a li|
|000036f0| 6e 65 2c 20 66 6f 72 20 | 65 78 61 6d 70 6c 65 2c |ne, for |example,|
|00003700| 20 79 6f 75 20 63 6f 75 | 6c 64 20 63 61 6c 6c 20 | you cou|ld call |
|00003710| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 72 6f |the foll|owing ro|
|00003720| 75 74 69 6e 65 73 3a 0d | 4d 6f 76 65 54 6f 28 31 |utines:.|MoveTo(1|
|00003730| 30 2c 31 30 29 3b 0d 4c | 69 6e 65 54 6f 28 32 30 |0,10);.L|ineTo(20|
|00003740| 2c 32 30 29 3b 0d 4e 6f | 74 69 63 65 20 74 68 61 |,20);.No|tice tha|
|00003750| 74 20 74 68 65 20 64 65 | 66 69 6e 69 74 69 6f 6e |t the de|finition|
|00003760| 20 6f 66 20 74 68 65 20 | 6c 69 6e 65 20 69 73 20 | of the |line is |
|00003770| 6e 6f 74 20 64 69 73 74 | 69 6e 63 74 20 66 72 6f |not dist|inct fro|
|00003780| 6d 20 74 68 65 20 64 72 | 61 77 69 6e 67 20 6f 66 |m the dr|awing of|
|00003790| 20 6c 69 6e 65 3a 20 74 | 68 65 20 73 61 6d 65 20 | line: t|he same |
|000037a0| 63 6f 64 65 20 74 68 61 | 74 20 64 65 66 69 6e 65 |code tha|t define|
|000037b0| 73 20 74 68 65 20 6c 69 | 6e 65 20 61 6c 73 6f 20 |s the li|ne also |
|000037c0| 64 72 61 77 73 20 69 74 | 2e 0d 54 68 65 20 72 65 |draws it|..The re|
|000037d0| 63 74 61 6e 67 6c 65 2d | 62 61 73 65 64 20 73 68 |ctangle-|based sh|
|000037e0| 61 70 65 73 20 28 72 65 | 63 74 61 6e 67 6c 65 73 |apes (re|ctangles|
|000037f0| 2c 20 72 6f 75 6e 64 20 | 72 65 63 74 61 6e 67 6c |, round |rectangl|
|00003800| 65 73 2c 20 61 6e 64 20 | 6f 76 61 6c 73 29 20 6d |es, and |ovals) m|
|00003810| 61 6b 65 20 73 6f 6d 65 | 20 64 69 73 74 69 6e 63 |ake some| distinc|
|00003820| 74 69 6f 6e 20 62 65 74 | 77 65 65 6e 20 64 65 66 |tion bet|ween def|
|00003830| 69 6e 69 6e 67 20 61 20 | 73 68 61 70 65 20 61 6e |ining a |shape an|
|00003840| 64 20 64 72 61 77 69 6e | 67 20 69 74 2e 20 57 69 |d drawin|g it. Wi|
|00003850| 74 68 20 74 68 65 73 65 | 20 74 79 70 65 73 20 6f |th these| types o|
|00003860| 66 20 73 68 61 70 65 73 | 2c 20 79 6f 75 20 66 69 |f shapes|, you fi|
|00003870| 72 73 74 20 64 65 66 69 | 6e 65 20 74 68 65 20 73 |rst defi|ne the s|
|00003880| 68 61 70 65 d5 73 20 62 | 6f 75 6e 64 69 6e 67 20 |hape.s b|ounding |
|00003890| 72 65 63 74 61 6e 67 6c | 65 20 77 69 74 68 20 61 |rectangl|e with a|
|000038a0| 20 52 65 63 74 20 64 61 | 74 61 20 73 74 72 75 63 | Rect da|ta struc|
|000038b0| 74 75 72 65 2c 20 66 6f | 72 20 65 78 61 6d 70 6c |ture, fo|r exampl|
|000038c0| 65 3a 0d 52 65 63 74 20 | 61 52 65 63 74 3b 0d 53 |e:.Rect |aRect;.S|
|000038d0| 65 74 52 65 63 74 28 26 | 61 52 65 63 74 2c 20 31 |etRect(&|aRect, 1|
|000038e0| 30 2c 20 31 30 2c 20 32 | 30 2c 20 32 30 29 3b 0d |0, 10, 2|0, 20);.|
|000038f0| 54 68 65 6e 20 79 6f 75 | 20 66 69 6e 69 73 68 20 |Then you| finish |
|00003900| 64 65 66 69 6e 69 6e 67 | 20 74 68 65 20 73 68 61 |defining| the sha|
|00003910| 70 65 20 61 73 20 79 6f | 75 20 64 72 61 77 20 69 |pe as yo|u draw i|
|00003920| 74 2e 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 0d |t. For e|xample,.|
|00003930| 46 72 61 6d 65 52 65 63 | 74 28 26 61 52 65 63 74 |FrameRec|t(&aRect|
|00003940| 29 3b 0d 75 73 65 73 20 | 74 68 65 20 61 52 65 63 |);.uses |the aRec|
|00003950| 74 20 73 74 72 75 63 74 | 75 72 65 20 74 6f 20 64 |t struct|ure to d|
|00003960| 72 61 77 20 61 20 66 72 | 61 6d 65 64 20 72 65 63 |raw a fr|amed rec|
|00003970| 74 61 6e 67 6c 65 2c 20 | 77 68 65 72 65 61 73 0d |tangle, |whereas.|
|00003980| 46 69 6c 6c 4f 76 61 6c | 28 26 61 52 65 63 74 29 |FillOval|(&aRect)|
|00003990| 3b 0d 75 73 65 73 20 74 | 68 65 20 73 61 6d 65 20 |;.uses t|he same |
|000039a0| 64 61 74 61 20 73 74 72 | 75 63 74 75 72 65 20 74 |data str|ucture t|
|000039b0| 6f 20 64 72 61 77 20 61 | 20 66 69 6c 6c 65 64 20 |o draw a| filled |
|000039c0| 6f 76 61 6c 2e 0d 54 68 | 65 20 68 61 6e 64 6c 65 |oval..Th|e handle|
|000039d0| 2d 62 61 73 65 64 20 73 | 68 61 70 65 73 20 28 77 |-based s|hapes (w|
|000039e0| 68 69 63 68 20 69 6e 63 | 6c 75 64 65 20 70 6f 6c |hich inc|lude pol|
|000039f0| 79 67 6f 6e 73 20 61 6e | 64 20 72 65 67 69 6f 6e |ygons an|d region|
|00003a00| 73 29 20 72 65 71 75 69 | 72 65 20 74 68 65 20 6d |s) requi|re the m|
|00003a10| 6f 73 74 20 64 65 66 69 | 6e 69 74 69 6f 6e 2e 20 |ost defi|nition. |
|00003a20| 54 6f 20 64 72 61 77 20 | 61 20 72 65 67 69 6f 6e |To draw |a region|
|00003a30| 20 73 68 61 70 65 2c 20 | 66 6f 72 20 65 78 61 6d | shape, |for exam|
|00003a40| 70 6c 65 2c 20 79 6f 75 | 20 6d 75 73 74 20 66 69 |ple, you| must fi|
|00003a50| 72 73 74 20 61 6c 6c 6f | 63 61 74 65 20 61 20 6e |rst allo|cate a n|
|00003a60| 65 77 20 72 65 67 69 6f | 6e 2c 20 74 68 65 6e 20 |ew regio|n, then |
|00003a70| 64 65 66 69 6e 65 20 74 | 68 65 20 70 61 72 74 73 |define t|he parts|
|00003a80| 20 6f 66 20 74 68 65 20 | 72 65 67 69 6f 6e 2c 20 | of the |region, |
|00003a90| 61 6e 64 20 66 69 6e 61 | 6c 6c 79 20 64 72 61 77 |and fina|lly draw|
|00003aa0| 20 74 68 65 20 72 65 67 | 69 6f 6e 20 77 69 74 68 | the reg|ion with|
|00003ab0| 20 61 20 72 6f 75 74 69 | 6e 65 20 73 75 63 68 20 | a routi|ne such |
|00003ac0| 61 73 20 46 72 61 6d 65 | 52 67 6e 20 6f 72 20 46 |as Frame|Rgn or F|
|00003ad0| 69 6c 6c 52 67 6e 2e 0d | 54 68 65 20 51 75 69 63 |illRgn..|The Quic|
|00003ae0| 6b 44 72 61 77 20 61 70 | 70 72 6f 61 63 68 20 74 |kDraw ap|proach t|
|00003af0| 6f 20 64 65 73 63 72 69 | 62 69 6e 67 20 61 6e 64 |o descri|bing and|
|00003b00| 20 64 72 61 77 69 6e 67 | 20 73 68 61 70 65 73 20 | drawing| shapes |
|00003b10| 68 61 73 20 74 68 72 65 | 65 20 69 6d 70 6f 72 74 |has thre|e import|
|00003b20| 61 6e 74 20 6c 69 6d 69 | 74 61 74 69 6f 6e 73 3a |ant limi|tations:|
|00003b30| 0d 6e 09 49 74 20 69 73 | 20 6e 6f 74 20 61 20 75 |.n.It is| not a u|
|00003b40| 6e 69 66 69 65 64 20 6d | 6f 64 65 6c 3a 20 65 61 |nified m|odel: ea|
|00003b50| 63 68 20 74 79 70 65 20 | 6f 66 20 73 68 61 70 65 |ch type |of shape|
|00003b60| 20 72 65 71 75 69 72 65 | 73 20 61 20 64 69 66 66 | require|s a diff|
|00003b70| 65 72 65 6e 74 20 6d 65 | 74 68 6f 64 20 6f 66 20 |erent me|thod of |
|00003b80| 70 72 6f 67 72 61 6d 6d | 69 6e 67 2e 0d 6e 09 49 |programm|ing..n.I|
|00003b90| 74 20 61 6c 6c 6f 77 73 | 20 64 69 72 65 63 74 20 |t allows| direct |
|00003ba0| 61 63 63 65 73 73 20 74 | 6f 20 6d 61 6e 79 20 64 |access t|o many d|
|00003bb0| 61 74 61 20 73 74 72 75 | 63 74 75 72 65 73 2c 20 |ata stru|ctures, |
|00003bc0| 77 68 69 63 68 20 70 72 | 65 76 65 6e 74 73 20 74 |which pr|events t|
|00003bd0| 68 65 20 64 61 74 61 20 | 73 74 72 75 63 74 75 72 |he data |structur|
|00003be0| 65 73 20 66 72 6f 6d 20 | 72 65 73 69 64 69 6e 67 |es from |residing|
|00003bf0| 20 6f 6e 20 61 6e 20 61 | 63 63 65 6c 65 72 61 74 | on an a|ccelerat|
|00003c00| 6f 72 20 63 61 72 64 2e | 0d 6e 09 49 74 20 72 65 |or card.|.n.It re|
|00003c10| 6c 69 65 73 20 6f 6e 20 | 73 74 61 74 65 20 69 6e |lies on |state in|
|00003c20| 66 6f 72 6d 61 74 69 6f | 6e d1 69 6e 66 6f 72 6d |formatio|n.inform|
|00003c30| 61 74 69 6f 6e 20 73 74 | 6f 72 65 64 20 69 6e 20 |ation st|ored in |
|00003c40| 74 68 65 20 67 72 61 70 | 68 69 63 73 20 65 6e 76 |the grap|hics env|
|00003c50| 69 72 6f 6e 6d 65 6e 74 | 20 74 68 61 74 20 61 66 |ironment| that af|
|00003c60| 66 65 63 74 73 20 68 6f | 77 20 73 68 61 70 65 73 |fects ho|w shapes|
|00003c70| 20 61 72 65 20 64 72 61 | 77 6e 2e 20 53 69 6e 63 | are dra|wn. Sinc|
|00003c80| 65 20 65 61 63 68 20 67 | 72 61 70 68 69 63 73 20 |e each g|raphics |
|00003c90| 73 68 61 70 65 20 73 74 | 6f 72 65 73 20 6c 69 74 |shape st|ores lit|
|00003ca0| 74 6c 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |tle info|rmation |
|00003cb0| 69 74 73 65 6c 66 20 61 | 62 6f 75 74 20 68 6f 77 |itself a|bout how|
|00003cc0| 20 69 74 20 69 73 20 74 | 6f 20 62 65 20 64 72 61 | it is t|o be dra|
|00003cd0| 77 6e 2c 20 74 68 65 20 | 67 72 61 70 68 69 63 73 |wn, the |graphics|
|00003ce0| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 6d 75 73 | environ|ment mus|
|00003cf0| 74 20 73 74 6f 72 65 20 | 74 68 61 74 20 69 6e 66 |t store |that inf|
|00003d00| 6f 72 6d 61 74 69 6f 6e | d1 61 6e 64 20 79 6f 75 |ormation|.and you|
|00003d10| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 6d 75 |r applic|ation mu|
|00003d20| 73 74 20 73 65 74 20 75 | 70 20 74 68 65 20 67 72 |st set u|p the gr|
|00003d30| 61 70 68 69 63 73 20 65 | 6e 76 69 72 6f 6e 6d 65 |aphics e|nvironme|
|00003d40| 6e 74 20 63 6f 72 72 65 | 63 74 6c 79 20 62 65 66 |nt corre|ctly bef|
|00003d50| 6f 72 65 20 64 72 61 77 | 69 6e 67 20 65 61 63 68 |ore draw|ing each|
|00003d60| 20 73 68 61 70 65 2e 20 | 0d 51 75 69 63 6b 44 72 | shape. |.QuickDr|
|00003d70| 61 77 20 47 58 20 53 68 | 61 70 65 73 0d 0d 55 6e |aw GX Sh|apes..Un|
|00003d80| 6c 69 6b 65 20 51 75 69 | 63 6b 44 72 61 77 2c 20 |like Qui|ckDraw, |
|00003d90| 51 75 69 63 6b 44 72 61 | 77 20 47 58 20 73 65 70 |QuickDra|w GX sep|
|00003da0| 61 72 61 74 65 73 20 74 | 68 65 20 70 72 6f 63 65 |arates t|he proce|
|00003db0| 73 73 20 6f 66 20 64 65 | 66 69 6e 69 6e 67 20 61 |ss of de|fining a|
|00003dc0| 20 73 68 61 70 65 20 66 | 72 6f 6d 20 74 68 65 20 | shape f|rom the |
|00003dd0| 70 72 6f 63 65 73 73 20 | 6f 66 20 64 72 61 77 69 |process |of drawi|
|00003de0| 6e 67 20 74 68 65 20 73 | 68 61 70 65 2e 20 51 75 |ng the s|hape. Qu|
|00003df0| 69 63 6b 44 72 61 77 20 | 47 58 20 70 72 6f 76 69 |ickDraw |GX provi|
|00003e00| 64 65 73 20 6d 65 74 68 | 6f 64 73 20 66 6f 72 20 |des meth|ods for |
|00003e10| 64 65 66 69 6e 69 6e 67 | 20 61 6e 64 20 64 72 61 |defining| and dra|
|00003e20| 77 69 6e 67 20 73 68 61 | 70 65 73 20 74 68 61 74 |wing sha|pes that|
|00003e30| 20 61 72 65 20 63 6f 6e | 73 69 73 74 65 6e 74 20 | are con|sistent |
|00003e40| 61 63 72 6f 73 73 20 73 | 68 61 70 65 20 74 79 70 |across s|hape typ|
|00003e50| 65 73 d1 79 6f 75 20 63 | 61 6e 20 63 72 65 61 74 |es.you c|an creat|
|00003e60| 65 20 61 20 6c 69 6e 65 | 20 69 6e 20 74 68 65 20 |e a line| in the |
|00003e70| 73 61 6d 65 20 6d 61 6e | 6e 65 72 20 74 68 61 74 |same man|ner that|
|00003e80| 20 79 6f 75 20 63 72 65 | 61 74 65 20 61 20 70 6f | you cre|ate a po|
|00003e90| 6c 79 67 6f 6e 20 61 6e | 64 20 79 6f 75 20 63 61 |lygon an|d you ca|
|00003ea0| 6e 20 64 72 61 77 20 61 | 20 72 65 63 74 61 6e 67 |n draw a| rectang|
|00003eb0| 6c 65 20 77 69 74 68 20 | 74 68 65 20 73 61 6d 65 |le with |the same|
|00003ec0| 20 66 75 6e 63 74 69 6f | 6e 20 74 68 61 74 20 64 | functio|n that d|
|00003ed0| 72 61 77 73 20 61 20 62 | 69 74 6d 61 70 2e 0d 54 |raws a b|itmap..T|
|00003ee0| 68 65 20 64 69 66 66 65 | 72 65 6e 74 20 74 79 70 |he diffe|rent typ|
|00003ef0| 65 73 20 6f 66 20 73 68 | 61 70 65 73 20 79 6f 75 |es of sh|apes you|
|00003f00| 20 63 61 6e 20 64 65 66 | 69 6e 65 20 77 69 74 68 | can def|ine with|
|00003f10| 20 51 75 69 63 6b 44 72 | 61 77 20 47 58 20 69 6e | QuickDr|aw GX in|
|00003f20| 63 6c 75 64 65 3a 0d 6e | 09 65 6d 70 74 79 20 73 |clude:.n|.empty s|
|00003f30| 68 61 70 65 73 0d 6e 09 | 66 75 6c 6c 20 73 68 61 |hapes.n.|full sha|
|00003f40| 70 65 73 0d 6e 09 70 6f | 69 6e 74 73 0d 6e 09 6c |pes.n.po|ints.n.l|
|00003f50| 69 6e 65 73 0d 6e 09 72 | 65 63 74 61 6e 67 6c 65 |ines.n.r|ectangle|
|00003f60| 73 0d 6e 09 63 75 72 76 | 65 73 0d 6e 09 70 6f 6c |s.n.curv|es.n.pol|
|00003f70| 79 67 6f 6e 73 0d 6e 09 | 70 61 74 68 73 0d 6e 09 |ygons.n.|paths.n.|
|00003f80| 74 65 78 74 0d 6e 09 67 | 6c 79 70 68 73 0d 6e 09 |text.n.g|lyphs.n.|
|00003f90| 6c 61 79 6f 75 74 73 0d | 6e 09 62 69 74 6d 61 70 |layouts.|n.bitmap|
|00003fa0| 73 0d 6e 09 70 69 63 74 | 75 72 65 73 0d 43 68 61 |s.n.pict|ures.Cha|
|00003fb0| 70 74 65 72 20 33 20 6f | 66 20 74 68 69 73 20 64 |pter 3 o|f this d|
|00003fc0| 6f 63 75 6d 65 6e 74 2c | 20 d2 50 72 6f 67 72 61 |ocument,| .Progra|
|00003fd0| 6d 6d 69 6e 67 20 57 69 | 74 68 20 53 68 61 70 65 |mming Wi|th Shape|
|00003fe0| 73 2c d3 20 64 65 73 63 | 72 69 62 65 73 20 74 68 |s,. desc|ribes th|
|00003ff0| 65 73 65 20 73 68 61 70 | 65 20 74 79 70 65 73 20 |ese shap|e types |
|00004000| 69 6e 20 6d 6f 72 65 20 | 64 65 74 61 69 6c 20 61 |in more |detail a|
|00004010| 6e 64 20 70 72 6f 76 69 | 64 65 73 20 73 61 6d 70 |nd provi|des samp|
|00004020| 6c 65 20 63 6f 64 65 20 | 74 68 61 74 20 73 68 6f |le code |that sho|
|00004030| 77 73 20 68 6f 77 20 74 | 6f 20 63 72 65 61 74 65 |ws how t|o create|
|00004040| 20 74 68 65 6d 2e 0d 49 | 6e 20 51 75 69 63 6b 44 | them..I|n QuickD|
|00004050| 72 61 77 20 47 58 2c 20 | 65 76 65 72 79 20 74 79 |raw GX, |every ty|
|00004060| 70 65 20 6f 66 20 73 68 | 61 70 65 20 72 65 71 75 |pe of sh|ape requ|
|00004070| 69 72 65 73 20 61 20 64 | 65 66 69 6e 69 74 69 6f |ires a d|efinitio|
|00004080| 6e 20 61 6e 64 20 61 6e | 20 75 6e 64 65 72 6c 79 |n and an| underly|
|00004090| 69 6e 67 20 64 61 74 61 | 20 73 74 72 75 63 74 75 |ing data| structu|
|000040a0| 72 65 d1 69 6e 20 74 68 | 69 73 20 77 61 79 2c 20 |re.in th|is way, |
|000040b0| 73 68 61 70 65 73 20 69 | 6e 20 51 75 69 63 6b 44 |shapes i|n QuickD|
|000040c0| 72 61 77 20 47 58 20 61 | 72 65 20 73 69 6d 69 6c |raw GX a|re simil|
|000040d0| 61 72 20 74 6f 20 74 68 | 65 20 68 61 6e 64 6c 65 |ar to th|e handle|
|000040e0| 2d 62 61 73 65 64 20 73 | 68 61 70 65 73 20 6f 66 |-based s|hapes of|
|000040f0| 20 51 75 69 63 6b 44 72 | 61 77 2e 20 48 6f 77 65 | QuickDr|aw. Howe|
|00004100| 76 65 72 2c 20 74 68 65 | 72 65 20 61 72 65 20 6d |ver, the|re are m|
|00004110| 61 6e 79 20 69 6d 70 6f | 72 74 61 6e 74 20 64 69 |any impo|rtant di|
|00004120| 66 66 65 72 65 6e 63 65 | 73 2e 0d 54 68 65 20 64 |fference|s..The d|
|00004130| 61 74 61 20 73 74 72 75 | 63 74 75 72 65 73 20 74 |ata stru|ctures t|
|00004140| 68 61 74 20 72 65 70 72 | 65 73 65 6e 74 20 73 68 |hat repr|esent sh|
|00004150| 61 70 65 73 20 69 6e 20 | 51 75 69 63 6b 44 72 61 |apes in |QuickDra|
|00004160| 77 20 47 58 20 61 72 65 | 20 70 72 69 76 61 74 65 |w GX are| private|
|00004170| d1 74 68 61 74 20 69 73 | 2c 20 79 6f 75 72 20 61 |.that is|, your a|
|00004180| 70 70 6c 69 63 61 74 69 | 6f 6e 20 63 61 6e 6e 6f |pplicati|on canno|
|00004190| 74 20 64 69 72 65 63 74 | 6c 79 20 6d 61 6e 69 70 |t direct|ly manip|
|000041a0| 75 6c 61 74 65 20 74 68 | 65 20 69 6e 66 6f 72 6d |ulate th|e inform|
|000041b0| 61 74 69 6f 6e 20 73 74 | 6f 72 65 64 20 69 6e 20 |ation st|ored in |
|000041c0| 74 68 65 6d 2e 20 54 68 | 65 73 65 20 64 61 74 61 |them. Th|ese data|
|000041d0| 20 73 74 72 75 63 74 75 | 72 65 73 20 61 72 65 20 | structu|res are |
|000041e0| 63 61 6c 6c 65 64 20 6f | 62 6a 65 63 74 73 20 61 |called o|bjects a|
|000041f0| 6e 64 20 74 68 65 20 70 | 69 65 63 65 73 20 6f 66 |nd the p|ieces of|
|00004200| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 69 6e 20 | informa|tion in |
|00004210| 74 68 65 6d 20 61 72 65 | 20 63 61 6c 6c 65 64 20 |them are| called |
|00004220| 70 72 6f 70 65 72 74 69 | 65 73 2e 20 51 75 69 63 |properti|es. Quic|
|00004230| 6b 44 72 61 77 20 47 58 | 20 70 72 6f 76 69 64 65 |kDraw GX| provide|
|00004240| 73 20 66 75 6e 63 74 69 | 6f 6e 73 20 74 68 61 74 |s functi|ons that|
|00004250| 20 61 6c 6c 6f 77 20 79 | 6f 75 72 20 61 70 70 6c | allow y|our appl|
|00004260| 69 63 61 74 69 6f 6e 20 | 74 6f 20 63 72 65 61 74 |ication |to creat|
|00004270| 65 20 61 6e 64 20 64 69 | 73 70 6f 73 65 20 6f 66 |e and di|spose of|
|00004280| 20 6f 62 6a 65 63 74 73 | 20 61 6e 64 20 74 6f 20 | objects| and to |
|00004290| 63 68 61 6e 67 65 20 74 | 68 65 20 76 61 6c 75 65 |change t|he value|
|000042a0| 73 20 6f 66 20 74 68 65 | 69 72 20 70 72 6f 70 65 |s of the|ir prope|
|000042b0| 72 74 69 65 73 2e 0d 45 | 61 63 68 20 51 75 69 63 |rties..E|ach Quic|
|000042c0| 6b 44 72 61 77 20 47 58 | 20 73 68 61 70 65 20 69 |kDraw GX| shape i|
|000042d0| 73 20 72 65 70 72 65 73 | 65 6e 74 65 64 20 62 79 |s repres|ented by|
|000042e0| 20 61 20 73 68 61 70 65 | 20 6f 62 6a 65 63 74 2e | a shape| object.|
|000042f0| 20 45 76 65 72 79 20 73 | 68 61 70 65 20 6f 62 6a | Every s|hape obj|
|00004300| 65 63 74 20 68 61 73 20 | 73 69 78 20 70 72 6f 70 |ect has |six prop|
|00004310| 65 72 74 69 65 73 3a 20 | 0d 6e 09 73 68 61 70 65 |erties: |.n.shape|
|00004320| 20 74 79 70 65 2c 20 77 | 68 69 63 68 20 73 70 65 | type, w|hich spe|
|00004330| 63 69 66 69 65 73 20 74 | 68 65 20 74 79 70 65 20 |cifies t|he type |
|00004340| 6f 66 20 74 68 65 20 73 | 68 61 70 65 3a 20 6c 69 |of the s|hape: li|
|00004350| 6e 65 2c 20 72 65 63 74 | 61 6e 67 6c 65 2c 20 63 |ne, rect|angle, c|
|00004360| 75 72 76 65 2c 20 61 6e | 64 20 73 6f 20 6f 6e 0d |urve, an|d so on.|
|00004370| 6e 09 67 65 6f 6d 65 74 | 72 79 2c 20 77 68 69 63 |n.geomet|ry, whic|
|00004380| 68 20 64 65 73 63 72 69 | 62 65 73 20 74 68 65 20 |h descri|bes the |
|00004390| 67 72 61 70 68 69 63 61 | 6c 20 73 74 72 75 63 74 |graphica|l struct|
|000043a0| 75 72 65 20 6f 66 20 74 | 68 65 20 73 68 61 70 65 |ure of t|he shape|
|000043b0| d1 66 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 0d 74 |.for exa|mple, .t|
|000043c0| 68 65 20 67 65 6f 6d 65 | 74 72 79 20 6f 66 20 61 |he geome|try of a|
|000043d0| 20 63 75 72 76 65 20 73 | 68 61 70 65 20 63 6f 6e | curve s|hape con|
|000043e0| 74 61 69 6e 73 20 74 68 | 65 20 63 6f 6e 74 72 6f |tains th|e contro|
|000043f0| 6c 20 70 6f 69 6e 74 73 | 20 74 68 61 74 20 64 65 |l points| that de|
|00004400| 66 69 6e 65 20 74 68 65 | 20 63 75 72 76 65 3b 20 |fine the| curve; |
|00004410| 74 68 65 20 67 65 6f 6d | 65 74 72 79 20 6f 66 20 |the geom|etry of |
|00004420| 61 20 74 65 78 74 20 73 | 68 61 70 65 20 63 6f 6e |a text s|hape con|
|00004430| 74 61 69 6e 73 20 74 68 | 65 20 63 68 61 72 61 63 |tains th|e charac|
|00004440| 74 65 72 73 20 74 68 61 | 74 20 6d 61 6b 65 20 75 |ters tha|t make u|
|00004450| 70 20 74 68 65 20 74 65 | 78 74 0d 6e 09 73 68 61 |p the te|xt.n.sha|
|00004460| 70 65 20 66 69 6c 6c 2c | 20 77 68 69 63 68 20 73 |pe fill,| which s|
|00004470| 70 65 63 69 66 69 65 73 | 20 68 6f 77 20 74 68 65 |pecifies| how the|
|00004480| 20 73 68 61 70 65 20 73 | 68 6f 75 6c 64 20 62 65 | shape s|hould be|
|00004490| 20 66 72 61 6d 65 64 20 | 6f 72 20 66 69 6c 6c 65 | framed |or fille|
|000044a0| 64 0d 6e 09 61 74 74 72 | 69 62 75 74 65 73 2c 20 |d.n.attr|ibutes, |
|000044b0| 77 68 69 63 68 20 61 72 | 65 20 61 20 73 65 74 20 |which ar|e a set |
|000044c0| 6f 66 20 66 6c 61 67 73 | 20 74 68 61 74 20 6d 6f |of flags| that mo|
|000044d0| 64 69 66 79 20 74 68 65 | 20 62 65 68 61 76 69 6f |dify the| behavio|
|000044e0| 72 20 6f 66 20 74 68 65 | 20 73 68 61 70 65 0d 6e |r of the| shape.n|
|000044f0| 09 6f 77 6e 65 72 20 63 | 6f 75 6e 74 2c 20 77 68 |.owner c|ount, wh|
|00004500| 69 63 68 20 51 75 69 63 | 6b 44 72 61 77 20 47 58 |ich Quic|kDraw GX|
|00004510| 20 75 73 65 73 20 74 6f | 20 69 6d 70 6c 65 6d 65 | uses to| impleme|
|00004520| 6e 74 20 6f 62 6a 65 63 | 74 20 73 68 61 72 69 6e |nt objec|t sharin|
|00004530| 67 0d 6e 09 74 61 67 20 | 6c 69 73 74 2c 20 77 68 |g.n.tag |list, wh|
|00004540| 69 63 68 20 79 6f 75 20 | 63 61 6e 20 75 73 65 20 |ich you |can use |
|00004550| 74 6f 20 61 64 64 20 61 | 70 70 6c 69 63 61 74 69 |to add a|pplicati|
|00004560| 6f 6e 2d 73 70 65 63 69 | 66 69 63 20 69 6e 66 6f |on-speci|fic info|
|00004570| 72 6d 61 74 69 6f 6e 20 | 74 6f 20 79 6f 75 72 20 |rmation |to your |
|00004580| 73 68 61 70 65 73 0d 49 | 6e 20 61 64 64 69 74 69 |shapes.I|n additi|
|00004590| 6f 6e 20 74 6f 20 74 68 | 65 73 65 20 73 69 78 20 |on to th|ese six |
|000045a0| 70 72 6f 70 65 72 74 69 | 65 73 2c 20 65 76 65 72 |properti|es, ever|
|000045b0| 79 20 73 68 61 70 65 20 | 6f 62 6a 65 63 74 20 63 |y shape |object c|
|000045c0| 6f 6e 74 61 69 6e 73 20 | 72 65 66 65 72 65 6e 63 |ontains |referenc|
|000045d0| 65 73 20 74 6f 20 74 68 | 72 65 65 20 6f 74 68 65 |es to th|ree othe|
|000045e0| 72 20 6f 62 6a 65 63 74 | 73 3a 20 61 20 73 74 79 |r object|s: a sty|
|000045f0| 6c 65 20 6f 62 6a 65 63 | 74 2c 20 61 6e 20 69 6e |le objec|t, an in|
|00004600| 6b 20 6f 62 6a 65 63 74 | 2c 20 61 6e 64 20 61 20 |k object|, and a |
|00004610| 74 72 61 6e 73 66 6f 72 | 6d 20 6f 62 6a 65 63 74 |transfor|m object|
|00004620| 2e 20 54 68 65 73 65 20 | 6f 62 6a 65 63 74 73 20 |. These |objects |
|00004630| 61 72 65 20 64 69 73 63 | 75 73 73 65 64 20 6c 61 |are disc|ussed la|
|00004640| 74 65 72 20 69 6e 20 74 | 68 69 73 20 63 68 61 70 |ter in t|his chap|
|00004650| 74 65 72 2e 0d 46 69 67 | 75 72 65 20 31 2d 31 20 |ter..Fig|ure 1-1 |
|00004660| 64 65 70 69 63 74 73 20 | 61 20 73 68 61 70 65 20 |depicts |a shape |
|00004670| 6f 62 6a 65 63 74 20 61 | 6e 64 20 73 68 6f 77 73 |object a|nd shows|
|00004680| 20 68 6f 77 20 74 68 65 | 20 73 68 61 70 65 20 74 | how the| shape t|
|00004690| 79 70 65 2c 20 73 68 61 | 70 65 20 66 69 6c 6c 2c |ype, sha|pe fill,|
|000046a0| 20 61 6e 64 20 67 65 6f | 6d 65 74 72 79 20 70 72 | and geo|metry pr|
|000046b0| 6f 70 65 72 74 69 65 73 | 20 61 66 66 65 63 74 20 |operties| affect |
|000046c0| 74 68 65 20 73 68 61 70 | 65 2e 0d 4e 6f 74 65 0d |the shap|e..Note.|
|000046d0| 4e 6f 74 65 20 74 68 61 | 74 20 74 68 65 20 77 6f |Note tha|t the wo|
|000046e0| 72 64 20 73 68 61 70 65 | 20 68 61 73 20 74 77 6f |rd shape| has two|
|000046f0| 20 64 69 66 66 65 72 65 | 6e 74 20 6d 65 61 6e 69 | differe|nt meani|
|00004700| 6e 67 73 20 69 6e 20 51 | 75 69 63 6b 44 72 61 77 |ngs in Q|uickDraw|
|00004710| 20 47 58 2e 20 54 68 65 | 20 77 6f 72 64 20 73 68 | GX. The| word sh|
|00004720| 61 70 65 20 63 61 6e 20 | 72 65 66 65 72 20 74 6f |ape can |refer to|
|00004730| 20 61 6e 79 20 67 72 61 | 70 68 69 63 2c 20 73 75 | any gra|phic, su|
|00004740| 63 68 20 61 73 20 61 20 | 62 6c 75 65 20 72 65 63 |ch as a |blue rec|
|00004750| 74 61 6e 67 6c 65 20 64 | 72 61 77 6e 20 6f 6e 20 |tangle d|rawn on |
|00004760| 74 68 65 20 73 63 72 65 | 65 6e 2c 20 62 75 74 20 |the scre|en, but |
|00004770| 69 74 20 63 61 6e 20 61 | 6c 73 6f 20 72 65 66 65 |it can a|lso refe|
|00004780| 72 20 74 6f 20 74 68 65 | 20 73 68 61 70 65 20 6f |r to the| shape o|
|00004790| 62 6a 65 63 74 2c 20 77 | 68 69 63 68 20 65 78 69 |bject, w|hich exi|
|000047a0| 73 74 73 20 69 6e 20 6d | 65 6d 6f 72 79 2c 20 68 |sts in m|emory, h|
|000047b0| 61 73 20 74 68 65 20 74 | 79 70 65 20 67 78 53 68 |as the t|ype gxSh|
|000047c0| 61 70 65 2c 20 61 6e 64 | 20 63 6f 6e 74 61 69 6e |ape, and| contain|
|000047d0| 73 20 74 68 65 20 74 68 | 65 20 73 69 78 20 70 72 |s the th|e six pr|
|000047e0| 6f 70 65 72 74 69 65 73 | 20 6c 69 73 74 65 64 20 |operties| listed |
|000047f0| 61 62 6f 76 65 2e 20 49 | 6e 20 51 75 69 63 6b 44 |above. I|n QuickD|
|00004800| 72 61 77 20 47 58 2c 20 | 65 76 65 72 79 20 67 72 |raw GX, |every gr|
|00004810| 61 70 68 69 63 20 73 68 | 61 70 65 20 69 73 20 72 |aphic sh|ape is r|
|00004820| 65 70 72 65 73 65 6e 74 | 65 64 20 69 6e 20 6d 65 |epresent|ed in me|
|00004830| 6d 6f 72 79 20 62 79 20 | 61 20 73 68 61 70 65 20 |mory by |a shape |
|00004840| 6f 62 6a 65 63 74 2c 20 | 73 6f 20 74 68 65 20 74 |object, |so the t|
|00004850| 65 72 6d 20 73 68 61 70 | 65 20 69 73 20 75 73 65 |erm shap|e is use|
|00004860| 64 20 66 6f 72 20 62 6f | 74 68 2e 20 13 75 0d 46 |d for bo|th. .u.F|
|00004870| 69 67 75 72 65 20 31 2d | 31 09 54 68 65 20 73 68 |igure 1-|1.The sh|
|00004880| 61 70 65 20 6f 62 6a 65 | 63 74 0d 0d 54 68 65 72 |ape obje|ct..Ther|
|00004890| 65 20 61 72 65 20 74 68 | 72 65 65 20 6d 61 69 6e |e are th|ree main|
|000048a0| 20 61 64 76 61 6e 74 61 | 67 65 73 20 74 6f 20 64 | advanta|ges to d|
|000048b0| 65 66 69 6e 69 6e 67 20 | 73 68 61 70 65 73 20 73 |efining |shapes s|
|000048c0| 65 70 61 72 61 74 65 6c | 79 20 66 72 6f 6d 20 64 |eparatel|y from d|
|000048d0| 72 61 77 69 6e 67 20 74 | 68 65 6d 3a 0d 6e 09 41 |rawing t|hem:.n.A|
|000048e0| 20 63 6f 6e 73 69 73 74 | 65 6e 74 20 70 72 6f 67 | consist|ent prog|
|000048f0| 72 61 6d 6d 69 6e 67 20 | 69 6e 74 65 72 66 61 63 |ramming |interfac|
|00004900| 65 2e 20 54 6f 20 64 72 | 61 77 20 61 20 73 68 61 |e. To dr|aw a sha|
|00004910| 70 65 20 77 69 74 68 20 | 51 75 69 63 6b 44 72 61 |pe with |QuickDra|
|00004920| 77 20 47 58 2c 20 6e 6f | 20 6d 61 74 74 65 72 20 |w GX, no| matter |
|00004930| 77 68 61 74 20 74 68 65 | 20 73 68 61 70 65 20 74 |what the| shape t|
|00004940| 79 70 65 2c 20 79 6f 75 | 20 63 72 65 61 74 65 20 |ype, you| create |
|00004950| 61 20 73 68 61 70 65 20 | 6f 62 6a 65 63 74 2c 20 |a shape |object, |
|00004960| 73 65 74 20 74 68 65 20 | 76 61 6c 75 65 73 20 6f |set the |values o|
|00004970| 66 20 69 74 73 20 70 72 | 6f 70 65 72 74 69 65 73 |f its pr|operties|
|00004980| 20 61 70 70 72 6f 70 72 | 69 61 74 65 6c 79 2c 20 | appropr|iately, |
|00004990| 61 6e 64 20 74 68 65 6e | 20 64 72 61 77 20 74 68 |and then| draw th|
|000049a0| 65 20 73 68 61 70 65 2e | 20 51 75 69 63 6b 44 72 |e shape.| QuickDr|
|000049b0| 61 77 20 47 58 20 70 72 | 6f 76 69 64 65 73 20 61 |aw GX pr|ovides a|
|000049c0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6d 65 74 68 6f | number |of metho|
|000049d0| 64 73 20 66 6f 72 20 63 | 72 65 61 74 69 6e 67 20 |ds for c|reating |
|000049e0| 73 68 61 70 65 20 6f 62 | 6a 65 63 74 73 20 61 6e |shape ob|jects an|
|000049f0| 64 20 69 6e 69 74 69 61 | 6c 69 7a 69 6e 67 20 74 |d initia|lizing t|
|00004a00| 68 65 69 72 20 70 72 6f | 70 65 72 74 69 65 73 2c |heir pro|perties,|
|00004a10| 20 62 75 74 20 65 61 63 | 68 20 6d 65 74 68 6f 64 | but eac|h method|
|00004a20| 20 77 6f 72 6b 73 20 66 | 6f 72 20 74 68 65 20 65 | works f|or the e|
|00004a30| 6e 74 69 72 65 20 72 61 | 6e 67 65 20 6f 66 20 73 |ntire ra|nge of s|
|00004a40| 68 61 70 65 20 74 79 70 | 65 73 2e 0d 6e 09 4e 6f |hape typ|es..n.No|
|00004a50| 20 72 65 6c 69 61 6e 63 | 65 20 6f 6e 20 73 74 61 | relianc|e on sta|
|00004a60| 74 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2e 20 |te infor|mation. |
|00004a70| 53 69 6e 63 65 20 73 6f | 6d 65 20 73 68 61 70 65 |Since so|me shape|
|00004a80| 73 20 69 6e 20 51 75 69 | 63 6b 44 72 61 77 20 68 |s in Qui|ckDraw h|
|00004a90| 61 76 65 20 6e 6f 20 64 | 61 74 61 20 73 74 72 75 |ave no d|ata stru|
|00004aa0| 63 74 75 72 65 20 61 73 | 73 6f 63 69 61 74 65 64 |cture as|sociated|
|00004ab0| 20 77 69 74 68 20 74 68 | 65 6d 2c 20 51 75 69 63 | with th|em, Quic|
|00004ac0| 6b 44 72 61 77 20 6d 75 | 73 74 20 75 73 65 20 6f |kDraw mu|st use o|
|00004ad0| 74 68 65 72 20 65 6c 65 | 6d 65 6e 74 73 20 6f 66 |ther ele|ments of|
|00004ae0| 20 74 68 65 20 67 72 61 | 70 68 69 63 20 65 6e 76 | the gra|phic env|
|00004af0| 69 72 6f 6e 6d 65 6e 74 | 20 74 6f 20 73 74 6f 72 |ironment| to stor|
|00004b00| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 61 62 |e inform|ation ab|
|00004b10| 6f 75 74 20 68 6f 77 20 | 74 6f 20 64 72 61 77 20 |out how |to draw |
|00004b20| 74 68 65 20 73 68 61 70 | 65 73 2e 20 46 6f 72 20 |the shap|es. For |
|00004b30| 65 78 61 6d 70 6c 65 2c | 20 61 20 51 75 69 63 6b |example,| a Quick|
|00004b40| 44 72 61 77 20 6c 69 6e | 65 20 68 61 73 20 6e 6f |Draw lin|e has no|
|00004b50| 20 61 73 73 6f 63 69 61 | 74 65 64 20 64 61 74 61 | associa|ted data|
|00004b60| 20 73 74 72 75 63 74 75 | 72 65 2c 20 73 6f 20 51 | structu|re, so Q|
|00004b70| 75 69 63 6b 44 72 61 77 | 20 75 73 65 73 20 74 68 |uickDraw| uses th|
|00004b80| 65 20 47 72 61 66 50 6f | 72 74 20 64 61 74 61 20 |e GrafPo|rt data |
|00004b90| 73 74 72 75 63 74 75 72 | 65 20 74 6f 20 73 74 6f |structur|e to sto|
|00004ba0| 72 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 73 |re infor|mation s|
|00004bb0| 75 63 68 20 61 73 20 68 | 6f 77 20 74 68 69 63 6b |uch as h|ow thick|
|00004bc0| 20 74 68 65 20 6c 69 6e | 65 20 73 68 6f 75 6c 64 | the lin|e should|
|00004bd0| 20 62 65 20 64 72 61 77 | 6e 2e 20 57 68 65 6e 65 | be draw|n. Whene|
|00004be0| 76 65 72 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 |ver you |want to |
|00004bf0| 64 72 61 77 20 61 20 6e | 65 77 20 6c 69 6e 65 20 |draw a n|ew line |
|00004c00| 77 69 74 68 20 61 20 64 | 69 66 66 65 72 65 6e 74 |with a d|ifferent|
|00004c10| 20 74 68 69 63 6b 6e 65 | 73 73 2c 20 79 6f 75 20 | thickne|ss, you |
|00004c20| 6d 75 73 74 20 72 65 6d | 65 6d 62 65 72 20 74 6f |must rem|ember to|
|00004c30| 20 73 65 74 20 74 68 65 | 20 69 6e 66 6f 72 6d 61 | set the| informa|
|00004c40| 74 69 6f 6e 20 69 6e 20 | 74 68 65 20 47 72 61 66 |tion in |the Graf|
|00004c50| 50 6f 72 74 20 73 74 72 | 75 63 74 75 72 65 20 66 |Port str|ucture f|
|00004c60| 69 72 73 74 2e 20 57 69 | 74 68 20 51 75 69 63 6b |irst. Wi|th Quick|
|00004c70| 44 72 61 77 20 47 58 2c | 20 68 6f 77 65 76 65 72 |Draw GX,| however|
|00004c80| 2c 20 65 76 65 72 79 20 | 73 68 61 70 65 20 69 73 |, every |shape is|
|00004c90| 20 72 65 70 72 65 73 65 | 6e 74 65 64 20 62 79 20 | represe|nted by |
|00004ca0| 61 20 73 68 61 70 65 20 | 6f 62 6a 65 63 74 2c 20 |a shape |object, |
|00004cb0| 77 68 69 63 68 2c 20 61 | 6c 6f 6e 67 20 77 69 74 |which, a|long wit|
|00004cc0| 68 20 69 74 73 20 61 73 | 73 6f 63 69 61 74 65 64 |h its as|sociated|
|00004cd0| 20 73 74 79 6c 65 2c 20 | 69 6e 6b 2c 20 61 6e 64 | style, |ink, and|
|00004ce0| 20 74 72 61 6e 73 66 6f | 72 6d 20 6f 62 6a 65 63 | transfo|rm objec|
|00004cf0| 74 73 2c 20 69 6e 63 6c | 75 64 65 73 20 61 6c 6c |ts, incl|udes all|
|00004d00| 20 6f 66 20 74 68 65 20 | 69 6e 66 6f 72 6d 61 74 | of the |informat|
|00004d10| 69 6f 6e 20 6e 65 63 65 | 73 73 61 72 79 20 74 6f |ion nece|ssary to|
|00004d20| 20 64 72 61 77 20 74 68 | 65 20 73 68 61 70 65 2e | draw th|e shape.|
|00004d30| 20 54 68 65 20 6e 65 78 | 74 20 74 77 6f 20 73 65 | The nex|t two se|
|00004d40| 63 74 69 6f 6e 73 20 64 | 69 73 63 75 73 73 20 74 |ctions d|iscuss t|
|00004d50| 68 65 20 73 74 79 6c 65 | 2c 20 69 6e 6b 2c 20 61 |he style|, ink, a|
|00004d60| 6e 64 20 74 72 61 6e 73 | 66 6f 72 6d 20 6f 62 6a |nd trans|form obj|
|00004d70| 65 63 74 73 20 69 6e 20 | 6d 6f 72 65 20 64 65 74 |ects in |more det|
|00004d80| 61 69 6c 2e 0d 6e 09 41 | 20 70 6c 61 63 65 20 74 |ail..n.A| place t|
|00004d90| 6f 20 63 61 63 68 65 20 | 70 72 65 2d 64 72 61 77 |o cache |pre-draw|
|00004da0| 69 6e 67 20 63 61 6c 63 | 75 6c 61 74 69 6f 6e 73 |ing calc|ulations|
|00004db0| 2e 20 43 65 72 74 61 69 | 6e 20 63 61 6c 63 75 6c |. Certai|n calcul|
|00004dc0| 61 74 69 6f 6e 73 20 61 | 72 65 20 6e 65 63 65 73 |ations a|re neces|
|00004dd0| 73 61 72 79 20 62 65 66 | 6f 72 65 20 64 72 61 77 |sary bef|ore draw|
|00004de0| 69 6e 67 20 61 6e 79 20 | 73 68 61 70 65 d1 66 6f |ing any |shape.fo|
|00004df0| 72 20 73 6f 6d 65 20 73 | 68 61 70 65 73 2c 20 74 |r some s|hapes, t|
|00004e00| 68 65 73 65 20 63 61 6c | 63 75 6c 61 74 69 6f 6e |hese cal|culation|
|00004e10| 73 20 63 61 6e 20 74 61 | 6b 65 20 61 73 20 6d 75 |s can ta|ke as mu|
|00004e20| 63 68 20 74 69 6d 65 20 | 61 73 20 74 68 65 20 61 |ch time |as the a|
|00004e30| 63 74 75 61 6c 20 64 72 | 61 77 69 6e 67 2e 20 42 |ctual dr|awing. B|
|00004e40| 65 63 61 75 73 65 20 64 | 72 61 77 69 6e 67 20 69 |ecause d|rawing i|
|00004e50| 6e 20 51 75 69 63 6b 44 | 72 61 77 20 72 65 6c 69 |n QuickD|raw reli|
|00004e60| 65 73 20 6f 6e 20 69 6e | 66 6f 72 6d 61 74 69 6f |es on in|formatio|
|00004e70| 6e 20 73 74 6f 72 65 64 | 20 69 6e 20 74 68 65 20 |n stored| in the |
|00004e80| 67 72 61 70 68 69 63 73 | 20 65 6e 76 69 72 6f 6e |graphics| environ|
|00004e90| 6d 65 6e 74 2c 20 70 72 | 65 2d 64 72 61 77 69 6e |ment, pr|e-drawin|
|00004ea0| 67 20 63 61 6c 63 75 6c | 61 74 69 6f 6e 73 20 74 |g calcul|ations t|
|00004eb0| 79 70 69 63 61 6c 6c 79 | 20 6d 75 73 74 20 62 65 |ypically| must be|
|00004ec0| 20 74 68 72 6f 77 6e 20 | 61 77 61 79 20 61 66 74 | thrown |away aft|
|00004ed0| 65 72 20 64 72 61 77 69 | 6e 67 20 65 61 63 68 20 |er drawi|ng each |
|00004ee0| 73 68 61 70 65 2e 20 48 | 6f 77 65 76 65 72 2c 20 |shape. H|owever, |
|00004ef0| 69 6e 20 51 75 69 63 6b | 44 72 61 77 20 47 58 2c |in Quick|Draw GX,|
|00004f00| 20 74 68 65 20 70 72 65 | 2d 64 72 61 77 69 6e 67 | the pre|-drawing|
|00004f10| 20 63 61 6c 63 75 6c 61 | 74 69 6f 6e 73 20 66 6f | calcula|tions fo|
|00004f20| 72 20 65 61 63 68 20 73 | 68 61 70 65 20 63 61 6e |r each s|hape can|
|00004f30| 20 62 65 20 73 74 6f 72 | 65 64 20 61 73 20 61 20 | be stor|ed as a |
|00004f40| 63 61 63 68 65 20 61 73 | 73 6f 63 69 61 74 65 64 |cache as|sociated|
|00004f50| 20 77 69 74 68 20 74 68 | 65 20 73 68 61 70 65 20 | with th|e shape |
|00004f60| 6f 62 6a 65 63 74 2e 20 | 49 66 20 6d 65 6d 6f 72 |object. |If memor|
|00004f70| 79 20 70 65 72 6d 69 74 | 73 2c 20 74 68 65 73 65 |y permit|s, these|
|00004f80| 20 63 61 63 68 65 73 20 | 73 74 61 79 20 61 72 6f | caches |stay aro|
|00004f90| 75 6e 64 20 66 72 6f 6d | 20 6f 6e 65 20 64 72 61 |und from| one dra|
|00004fa0| 77 69 6e 67 20 6f 66 20 | 61 20 70 61 72 74 69 63 |wing of |a partic|
|00004fb0| 75 6c 61 72 20 73 68 61 | 70 65 20 74 6f 20 74 68 |ular sha|pe to th|
|00004fc0| 65 20 6e 65 78 74 2e 20 | 54 68 65 20 6e 65 78 74 |e next. |The next|
|00004fd0| 20 74 69 6d 65 20 79 6f | 75 20 64 72 61 77 20 61 | time yo|u draw a|
|00004fe0| 20 73 68 61 70 65 20 74 | 68 61 74 20 79 6f 75 20 | shape t|hat you |
|00004ff0| 68 61 76 65 20 61 6c 72 | 65 61 64 79 20 64 72 61 |have alr|eady dra|
|00005000| 77 6e 20 28 66 6f 72 20 | 65 78 61 6d 70 6c 65 2c |wn (for |example,|
|00005010| 20 69 6e 20 72 65 73 70 | 6f 6e 73 65 20 74 6f 20 | in resp|onse to |
|00005020| 61 6e 20 75 70 64 61 74 | 65 20 65 76 65 6e 74 29 |an updat|e event)|
|00005030| 2c 20 51 75 69 63 6b 44 | 72 61 77 20 47 58 20 63 |, QuickD|raw GX c|
|00005040| 61 6e 20 75 73 65 20 74 | 68 65 20 69 6e 66 6f 72 |an use t|he infor|
|00005050| 6d 61 74 69 6f 6e 20 69 | 6e 20 74 68 65 20 63 61 |mation i|n the ca|
|00005060| 63 68 65 20 74 6f 20 73 | 70 65 65 64 20 74 68 65 |che to s|peed the|
|00005070| 20 64 72 61 77 69 6e 67 | 20 70 72 6f 63 65 73 73 | drawing| process|
|00005080| 2e 20 41 6c 74 68 6f 75 | 67 68 20 51 75 69 63 6b |. Althou|gh Quick|
|00005090| 44 72 61 77 20 47 58 20 | 68 61 6e 64 6c 65 73 20 |Draw GX |handles |
|000050a0| 74 68 65 73 65 20 63 61 | 63 68 65 73 20 66 6f 72 |these ca|ches for|
|000050b0| 20 79 6f 75 2c 20 69 74 | 20 61 6c 73 6f 20 70 72 | you, it| also pr|
|000050c0| 6f 76 69 64 65 73 20 61 | 20 6d 65 63 68 61 6e 69 |ovides a| mechani|
|000050d0| 73 6d 20 66 6f 72 20 79 | 6f 75 20 74 6f 20 63 72 |sm for y|ou to cr|
|000050e0| 65 61 74 65 20 61 6e 64 | 20 64 69 73 70 6f 73 65 |eate and| dispose|
|000050f0| 20 74 68 65 6d 20 74 6f | 20 73 75 69 74 20 79 6f | them to| suit yo|
|00005100| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e d5 73 |ur appli|cation.s|
|00005110| 20 70 61 72 74 69 63 75 | 6c 61 72 20 6e 65 65 64 | particu|lar need|
|00005120| 73 2e 20 59 6f 75 20 63 | 61 6e 20 66 69 6e 64 20 |s. You c|an find |
|00005130| 6d 6f 72 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |more inf|ormation|
|00005140| 20 61 62 6f 75 74 20 74 | 68 65 73 65 20 64 72 61 | about t|hese dra|
|00005150| 77 69 6e 67 20 63 61 63 | 68 65 73 20 69 6e 20 49 |wing cac|hes in I|
|00005160| 6e 73 69 64 65 20 4d 61 | 63 69 6e 74 6f 73 68 3a |nside Ma|cintosh:|
|00005170| 20 51 75 69 63 6b 44 72 | 61 77 20 47 58 20 4f 62 | QuickDr|aw GX Ob|
|00005180| 6a 65 63 74 73 2e 0d 41 | 73 20 79 6f 75 20 63 61 |jects..A|s you ca|
|00005190| 6e 20 73 65 65 2c 20 74 | 68 65 20 61 64 76 61 6e |n see, t|he advan|
|000051a0| 74 61 67 65 73 20 6f 66 | 20 51 75 69 63 6b 44 72 |tages of| QuickDr|
|000051b0| 61 77 d5 73 20 6f 62 6a | 65 63 74 2d 62 61 73 65 |aw.s obj|ect-base|
|000051c0| 64 20 67 72 61 70 68 69 | 63 73 20 61 72 65 20 6e |d graphi|cs are n|
|000051d0| 75 6d 65 72 6f 75 73 2e | 20 48 6f 77 65 76 65 72 |umerous.| However|
|000051e0| 2c 20 74 68 65 72 65 20 | 61 72 65 20 73 6f 6d 65 |, there |are some|
|000051f0| 20 70 6f 74 65 6e 74 69 | 61 6c 20 64 69 73 61 64 | potenti|al disad|
|00005200| 76 61 6e 74 61 67 65 73 | 20 74 6f 20 74 68 69 73 |vantages| to this|
|00005210| 20 74 79 70 65 20 6f 66 | 20 67 72 61 70 68 69 63 | type of| graphic|
|00005220| 73 20 73 79 73 74 65 6d | 2e 20 46 6f 72 20 65 78 |s system|. For ex|
|00005230| 61 6d 70 6c 65 2c 20 73 | 69 6e 63 65 20 65 76 65 |ample, s|ince eve|
|00005240| 72 79 20 73 68 61 70 65 | 20 73 74 6f 72 65 73 20 |ry shape| stores |
|00005250| 61 6c 6c 20 6f 66 20 74 | 68 65 20 69 6e 66 6f 72 |all of t|he infor|
|00005260| 6d 61 74 69 6f 6e 20 6e | 65 63 65 73 73 61 72 79 |mation n|ecessary|
|00005270| 20 74 6f 20 64 72 61 77 | 20 69 74 2c 20 74 68 65 | to draw| it, the|
|00005280| 20 61 6d 6f 75 6e 74 20 | 6f 66 20 6d 65 6d 6f 72 | amount |of memor|
|00005290| 79 20 6e 65 63 65 73 73 | 61 72 79 20 66 6f 72 20 |y necess|ary for |
|000052a0| 63 6f 6d 70 6c 65 78 20 | 67 72 61 70 68 69 63 73 |complex |graphics|
|000052b0| 20 63 6f 75 6c 64 20 62 | 65 20 76 65 72 79 20 6c | could b|e very l|
|000052c0| 61 72 67 65 2e 20 51 75 | 69 63 6b 44 72 61 77 20 |arge. Qu|ickDraw |
|000052d0| 47 58 20 61 64 64 72 65 | 73 73 65 73 20 74 68 69 |GX addre|sses thi|
|000052e0| 73 20 70 72 6f 62 6c 65 | 6d 20 69 6e 20 74 77 6f |s proble|m in two|
|000052f0| 20 77 61 79 73 3a 20 69 | 74 20 61 75 74 6f 6d 61 | ways: i|t automa|
|00005300| 74 69 63 61 6c 6c 79 20 | 75 6e 6c 6f 61 64 73 20 |tically |unloads |
|00005310| 73 68 61 70 65 73 20 28 | 77 72 69 74 65 73 20 74 |shapes (|writes t|
|00005320| 68 65 6d 20 74 6f 20 64 | 69 73 6b 29 20 77 68 65 |hem to d|isk) whe|
|00005330| 6e 20 69 74 20 6e 65 65 | 64 73 20 6d 6f 72 65 20 |n it nee|ds more |
|00005340| 6d 65 6d 6f 72 79 20 73 | 70 61 63 65 2c 20 61 6e |memory s|pace, an|
|00005350| 64 20 69 74 20 61 6c 6c | 6f 77 73 20 6f 62 6a 65 |d it all|ows obje|
|00005360| 63 74 73 20 74 6f 20 62 | 65 20 73 68 61 72 65 64 |cts to b|e shared|
|00005370| 2e 20 46 6f 72 20 6d 6f | 72 65 20 69 6e 66 6f 72 |. For mo|re infor|
|00005380| 6d 61 74 69 6f 6e 20 61 | 62 6f 75 74 20 6c 6f 61 |mation a|bout loa|
|00005390| 64 69 6e 67 20 61 6e 64 | 20 75 6e 6c 6f 61 64 69 |ding and| unloadi|
|000053a0| 6e 67 20 73 68 61 70 65 | 73 2c 20 73 65 65 20 49 |ng shape|s, see I|
|000053b0| 6e 73 69 64 65 20 4d 61 | 63 69 6e 74 6f 73 68 3a |nside Ma|cintosh:|
|000053c0| 20 51 75 69 63 6b 44 72 | 61 77 20 47 58 20 4f 62 | QuickDr|aw GX Ob|
|000053d0| 6a 65 63 74 73 3b 20 66 | 6f 72 20 6d 6f 72 65 20 |jects; f|or more |
|000053e0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 61 62 6f 75 |informat|ion abou|
|000053f0| 74 20 6f 62 6a 65 63 74 | 20 73 68 61 72 69 6e 67 |t object| sharing|
|00005400| 2c 20 73 65 65 20 74 68 | 61 74 20 62 6f 6f 6b 20 |, see th|at book |
|00005410| 61 6e 64 20 61 6c 73 6f | 20 73 65 65 20 74 68 65 |and also| see the|
|00005420| 20 6e 65 78 74 20 73 65 | 63 74 69 6f 6e 20 6f 66 | next se|ction of|
|00005430| 20 74 68 69 73 20 63 68 | 61 70 74 65 72 2e 0d 41 | this ch|apter..A|
|00005440| 6e 6f 74 68 65 72 20 70 | 6f 74 65 6e 74 69 61 6c |nother p|otential|
|00005450| 20 64 69 73 61 64 76 61 | 6e 74 61 67 65 20 6f 66 | disadva|ntage of|
|00005460| 20 6f 62 6a 65 63 74 2d | 62 61 73 65 64 20 67 72 | object-|based gr|
|00005470| 61 70 68 69 63 73 20 69 | 73 20 74 68 61 74 20 74 |aphics i|s that t|
|00005480| 68 65 20 73 68 65 65 72 | 20 6e 75 6d 62 65 72 20 |he sheer| number |
|00005490| 6f 66 20 6f 62 6a 65 63 | 74 73 20 69 6e 20 6d 65 |of objec|ts in me|
|000054a0| 6d 6f 72 79 20 6d 69 67 | 68 74 20 70 6f 73 65 20 |mory mig|ht pose |
|000054b0| 73 70 65 63 69 61 6c 20 | 6d 65 6d 6f 72 79 2d 6d |special |memory-m|
|000054c0| 61 6e 61 67 65 6d 65 6e | 74 20 70 72 6f 62 6c 65 |anagemen|t proble|
|000054d0| 6d 73 2e 20 54 6f 20 61 | 64 64 72 65 73 73 20 74 |ms. To a|ddress t|
|000054e0| 68 69 73 20 63 6f 6e 63 | 65 72 6e 2c 20 51 75 69 |his conc|ern, Qui|
|000054f0| 63 6b 44 72 61 77 20 47 | 58 20 68 61 73 20 69 74 |ckDraw G|X has it|
|00005500| 73 20 6f 77 6e 20 73 70 | 65 63 69 61 6c 69 7a 65 |s own sp|ecialize|
|00005510| 64 20 6d 65 6d 6f 72 79 | 20 6d 61 6e 61 67 65 72 |d memory| manager|
|00005520| 2c 20 61 6e 64 20 51 75 | 69 63 6b 44 72 61 77 20 |, and Qu|ickDraw |
|00005530| 47 58 20 6f 62 6a 65 63 | 74 73 20 72 65 73 69 64 |GX objec|ts resid|
|00005540| 65 20 69 6e 20 61 20 70 | 72 69 76 61 74 65 20 6d |e in a p|rivate m|
|00005550| 65 6d 6f 72 79 20 68 65 | 61 70 2e 20 46 6f 72 20 |emory he|ap. For |
|00005560| 6d 6f 72 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |more inf|ormation|
|00005570| 2c 20 73 65 65 20 d2 48 | 6f 77 20 74 6f 20 50 72 |, see .H|ow to Pr|
|00005580| 6f 67 72 61 6d 20 49 74 | d3 20 6f 6e 20 70 61 67 |ogram It|. on pag|
|00005590| 65 20 31 2d 31 36 2e 0d | 0d 48 6f 77 20 74 6f 20 |e 1-16..|.How to |
|000055a0| 44 72 61 77 0d 0d 57 69 | 74 68 20 51 75 69 63 6b |Draw..Wi|th Quick|
|000055b0| 44 72 61 77 2c 20 6d 75 | 63 68 20 6f 66 20 74 68 |Draw, mu|ch of th|
|000055c0| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 6e 65 |e inform|ation ne|
|000055d0| 63 65 73 73 61 72 79 20 | 74 6f 20 64 72 61 77 20 |cessary |to draw |
|000055e0| 73 68 61 70 65 73 20 69 | 73 20 73 74 6f 72 65 64 |shapes i|s stored|
|000055f0| 20 69 6e 20 61 20 47 72 | 61 66 50 6f 72 74 20 28 | in a Gr|afPort (|
|00005600| 6f 72 20 43 47 72 61 66 | 50 6f 72 74 29 20 64 61 |or CGraf|Port) da|
|00005610| 74 61 20 73 74 72 75 63 | 74 75 72 65 2e 20 46 6f |ta struc|ture. Fo|
|00005620| 72 20 65 61 63 68 20 47 | 72 61 66 50 6f 72 74 20 |r each G|rafPort |
|00005630| 64 61 74 61 20 73 74 72 | 75 63 74 75 72 65 2c 20 |data str|ucture, |
|00005640| 74 68 65 72 65 20 63 61 | 6e 20 62 65 20 6f 6e 6c |there ca|n be onl|
|00005650| 79 20 6f 6e 65 20 73 65 | 74 20 6f 66 20 64 72 61 |y one se|t of dra|
|00005660| 77 69 6e 67 20 73 74 61 | 74 65 20 69 6e 66 6f 72 |wing sta|te infor|
|00005670| 6d 61 74 69 6f 6e 20 61 | 74 20 61 20 74 69 6d 65 |mation a|t a time|
|00005680| 2e 20 54 68 69 73 20 69 | 6e 66 6f 72 6d 61 74 69 |. This i|nformati|
|00005690| 6f 6e 2c 20 73 75 63 68 | 20 61 73 20 70 65 6e 20 |on, such| as pen |
|000056a0| 73 69 7a 65 20 61 6e 64 | 20 70 61 74 74 65 72 6e |size and| pattern|
|000056b0| 2c 20 61 70 70 6c 69 65 | 73 20 74 6f 20 77 68 61 |, applie|s to wha|
|000056c0| 74 65 76 65 72 20 73 68 | 61 70 65 20 68 61 70 70 |tever sh|ape happ|
|000056d0| 65 6e 73 20 74 6f 20 62 | 65 20 64 72 61 77 6e 20 |ens to b|e drawn |
|000056e0| 77 68 69 6c 65 20 74 68 | 65 20 69 6e 66 6f 72 6d |while th|e inform|
|000056f0| 61 74 69 6f 6e 20 69 73 | 20 69 6e 20 74 68 65 20 |ation is| in the |
|00005700| 47 72 61 66 50 6f 72 74 | 20 73 74 72 75 63 74 75 |GrafPort| structu|
|00005710| 72 65 2e 20 0d 57 68 65 | 6e 20 79 6f 75 20 77 61 |re. .Whe|n you wa|
|00005720| 6e 74 20 74 6f 20 64 72 | 61 77 20 61 20 73 68 61 |nt to dr|aw a sha|
|00005730| 70 65 2c 20 79 6f 75 20 | 6d 75 73 74 20 70 72 65 |pe, you |must pre|
|00005740| 70 61 72 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |pare inf|ormation|
|00005750| 20 69 6e 20 74 68 65 20 | 47 72 61 66 50 6f 72 74 | in the |GrafPort|
|00005760| 20 73 74 72 75 63 74 75 | 72 65 20 62 65 66 6f 72 | structu|re befor|
|00005770| 65 20 63 61 6c 6c 69 6e | 67 20 74 68 65 20 72 6f |e callin|g the ro|
|00005780| 75 74 69 6e 65 73 20 74 | 68 61 74 20 64 72 61 77 |utines t|hat draw|
|00005790| 20 74 68 65 20 73 68 61 | 70 65 2e 20 53 69 6e 63 | the sha|pe. Sinc|
|000057a0| 65 20 61 20 47 72 61 66 | 50 6f 72 74 20 73 74 72 |e a Graf|Port str|
|000057b0| 75 63 74 75 72 65 20 74 | 79 70 69 63 61 6c 6c 79 |ucture t|ypically|
|000057c0| 20 61 70 70 6c 69 65 73 | 20 74 6f 20 61 6e 20 65 | applies| to an e|
|000057d0| 6e 74 69 72 65 20 77 69 | 6e 64 6f 77 2c 20 79 6f |ntire wi|ndow, yo|
|000057e0| 75 20 68 61 76 65 20 74 | 6f 20 72 65 73 65 74 20 |u have t|o reset |
|000057f0| 74 68 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |the info|rmation |
|00005800| 69 6e 20 74 68 65 20 47 | 72 61 66 50 6f 72 74 20 |in the G|rafPort |
|00005810| 73 74 72 75 63 74 75 72 | 65 20 62 65 66 6f 72 65 |structur|e before|
|00005820| 20 79 6f 75 20 64 72 61 | 77 20 61 20 64 69 66 66 | you dra|w a diff|
|00005830| 65 72 65 6e 74 20 73 68 | 61 70 65 20 69 6e 20 74 |erent sh|ape in t|
|00005840| 68 65 20 73 61 6d 65 20 | 77 69 6e 64 6f 77 2e 20 |he same |window. |
|00005850| 0d 41 73 20 64 69 73 63 | 75 73 73 65 64 20 69 6e |.As disc|ussed in|
|00005860| 20 74 68 65 20 70 72 65 | 76 69 6f 75 73 20 73 65 | the pre|vious se|
|00005870| 63 74 69 6f 6e 2c 20 68 | 61 76 69 6e 67 20 74 6f |ction, h|aving to|
|00005880| 20 63 6f 6e 73 74 61 6e | 74 6c 79 20 72 65 73 65 | constan|tly rese|
|00005890| 74 20 74 68 65 20 76 61 | 6c 75 65 73 20 69 6e 20 |t the va|lues in |
|000058a0| 74 68 65 20 47 72 61 66 | 50 6f 72 74 20 73 74 72 |the Graf|Port str|
|000058b0| 75 63 74 75 72 65 20 69 | 73 20 61 20 70 72 6f 67 |ucture i|s a prog|
|000058c0| 72 61 6d 6d 69 6e 67 20 | 63 68 6f 72 65 20 61 6e |ramming |chore an|
|000058d0| 64 20 69 74 20 65 6c 69 | 6d 69 6e 61 74 65 73 20 |d it eli|minates |
|000058e0| 74 68 65 20 70 6f 73 73 | 69 62 69 6c 69 74 79 20 |the poss|ibility |
|000058f0| 6f 66 20 63 61 63 68 69 | 6e 67 20 63 65 72 74 61 |of cachi|ng certa|
|00005900| 69 6e 20 74 79 70 65 73 | 20 6f 66 20 70 72 65 2d |in types| of pre-|
|00005910| 64 72 61 77 69 6e 67 20 | 63 61 6c 63 75 6c 61 74 |drawing |calculat|
|00005920| 69 6f 6e 73 2e 0d 57 69 | 74 68 20 51 75 69 63 6b |ions..Wi|th Quick|
|00005930| 44 72 61 77 20 47 58 2c | 20 65 61 63 68 20 73 68 |Draw GX,| each sh|
|00005940| 61 70 65 20 69 73 20 72 | 65 73 70 6f 6e 73 69 62 |ape is r|esponsib|
|00005950| 6c 65 20 66 6f 72 20 6d | 61 69 6e 74 61 69 6e 69 |le for m|aintaini|
|00005960| 6e 67 20 69 74 73 20 6f | 77 6e 20 64 72 61 77 69 |ng its o|wn drawi|
|00005970| 6e 67 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2e 20 |ng infor|mation. |
|00005980| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 70 65 6e |For exam|ple, pen|
|00005990| 20 73 69 7a 65 20 6e 6f | 20 6c 6f 6e 67 65 72 20 | size no| longer |
|000059a0| 61 70 70 6c 69 65 73 20 | 74 6f 20 74 68 65 20 65 |applies |to the e|
|000059b0| 6e 74 69 72 65 20 64 72 | 61 77 69 6e 67 20 70 6f |ntire dr|awing po|
|000059c0| 72 74 d1 69 6e 73 74 65 | 61 64 2c 20 65 61 63 68 |rt.inste|ad, each|
|000059d0| 20 69 6e 64 69 76 69 64 | 75 61 6c 20 73 68 61 70 | individ|ual shap|
|000059e0| 65 20 63 61 6e 20 68 61 | 76 65 20 69 74 73 20 6f |e can ha|ve its o|
|000059f0| 77 6e 20 70 65 6e 20 73 | 69 7a 65 2e 20 57 68 65 |wn pen s|ize. Whe|
|00005a00| 6e 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 64 72 |n you wa|nt to dr|
|00005a10| 61 77 20 61 20 73 68 61 | 70 65 2c 20 79 6f 75 20 |aw a sha|pe, you |
|00005a20| 64 6f 6e d5 74 20 6e 65 | 65 64 20 74 6f 20 72 65 |don.t ne|ed to re|
|00005a30| 73 65 74 20 61 6e 79 20 | 73 74 61 74 65 20 69 6e |set any |state in|
|00005a40| 66 6f 72 6d 61 74 69 6f | 6e 3b 20 79 6f 75 20 73 |formatio|n; you s|
|00005a50| 69 6d 70 6c 79 20 63 61 | 6c 6c 20 74 68 65 20 73 |imply ca|ll the s|
|00005a60| 68 61 70 65 2d 64 72 61 | 77 69 6e 67 20 66 75 6e |hape-dra|wing fun|
|00005a70| 63 74 69 6f 6e 2e 0d 49 | 6e 73 74 65 61 64 20 6f |ction..I|nstead o|
|00005a80| 66 20 73 74 6f 72 69 6e | 67 20 74 68 69 73 20 74 |f storin|g this t|
|00005a90| 79 70 65 20 6f 66 20 64 | 72 61 77 69 6e 67 20 69 |ype of d|rawing i|
|00005aa0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 69 6e 20 74 68 |nformati|on in th|
|00005ab0| 65 20 73 68 61 70 65 20 | 6f 62 6a 65 63 74 20 64 |e shape |object d|
|00005ac0| 69 72 65 63 74 6c 79 2c | 20 51 75 69 63 6b 44 72 |irectly,| QuickDr|
|00005ad0| 61 77 20 47 58 20 65 6e | 63 61 70 73 75 6c 61 74 |aw GX en|capsulat|
|00005ae0| 65 73 20 69 74 20 69 6e | 74 6f 20 74 77 6f 20 6f |es it in|to two o|
|00005af0| 74 68 65 72 20 74 79 70 | 65 73 20 6f 66 20 6f 62 |ther typ|es of ob|
|00005b00| 6a 65 63 74 73 3a 20 0d | 6e 09 54 68 65 20 73 74 |jects: .|n.The st|
|00005b10| 79 6c 65 20 6f 62 6a 65 | 63 74 2e 20 54 68 65 73 |yle obje|ct. Thes|
|00005b20| 65 20 6f 62 6a 65 63 74 | 73 20 73 74 6f 72 65 20 |e object|s store |
|00005b30| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 61 62 6f 75 |informat|ion abou|
|00005b40| 74 20 73 74 79 6c 69 73 | 74 69 63 20 76 61 72 69 |t stylis|tic vari|
|00005b50| 61 74 69 6f 6e 73 20 6f | 6e 20 68 6f 77 20 74 68 |ations o|n how th|
|00005b60| 65 20 73 68 61 70 65 20 | 69 73 20 64 72 61 77 6e |e shape |is drawn|
|00005b70| 2e 20 53 6f 6d 65 20 6f | 66 20 74 68 69 73 20 69 |. Some o|f this i|
|00005b80| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 69 73 20 73 69 |nformati|on is si|
|00005b90| 6d 69 6c 61 72 20 74 6f | 20 74 68 65 20 69 6e 66 |milar to| the inf|
|00005ba0| 6f 72 6d 61 74 69 6f 6e | 20 69 6e 20 74 68 65 20 |ormation| in the |
|00005bb0| 51 75 69 63 6b 44 72 61 | 77 20 47 72 61 66 50 6f |QuickDra|w GrafPo|
|00005bc0| 72 74 20 64 61 74 61 20 | 73 74 72 75 63 74 75 72 |rt data |structur|
|00005bd0| 65 2c 20 73 75 63 68 20 | 61 73 20 70 65 6e 20 73 |e, such |as pen s|
|00005be0| 69 7a 65 2c 20 70 61 74 | 74 65 72 6e 2c 20 74 65 |ize, pat|tern, te|
|00005bf0| 78 74 20 66 6f 6e 74 2c | 20 61 6e 64 20 74 65 78 |xt font,| and tex|
|00005c00| 74 20 73 69 7a 65 3b 20 | 73 6f 6d 65 20 69 6e 66 |t size; |some inf|
|00005c10| 6f 72 6d 61 74 69 6f 6e | 20 69 73 20 6e 65 77 20 |ormation| is new |
|00005c20| 74 6f 20 51 75 69 63 6b | 44 72 61 77 20 47 58 2c |to Quick|Draw GX,|
|00005c30| 20 73 75 63 68 20 61 73 | 20 64 61 73 68 65 73 2c | such as| dashes,|
|00005c40| 20 6a 6f 69 6e 73 2c 20 | 61 6e 64 20 63 61 70 73 | joins, |and caps|
|00005c50| 2e 20 54 68 65 20 6e 65 | 78 74 20 73 65 63 74 69 |. The ne|xt secti|
|00005c60| 6f 6e 2c 20 d2 53 74 79 | 6c 65 73 2c d3 20 64 65 |on, .Sty|les,. de|
|00005c70| 73 63 72 69 62 65 73 20 | 73 74 79 6c 65 20 6f 62 |scribes |style ob|
|00005c80| 6a 65 63 74 73 20 69 6e | 20 6d 6f 72 65 20 64 65 |jects in| more de|
|00005c90| 74 61 69 6c 2e 0d 6e 09 | 54 68 65 20 69 6e 6b 20 |tail..n.|The ink |
|00005ca0| 6f 62 6a 65 63 74 2e 20 | 54 68 65 73 65 20 6f 62 |object. |These ob|
|00005cb0| 6a 65 63 74 73 20 73 74 | 6f 72 65 20 63 6f 6c 6f |jects st|ore colo|
|00005cc0| 72 20 61 6e 64 20 74 72 | 61 6e 73 66 65 72 20 6d |r and tr|ansfer m|
|00005cd0| 6f 64 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 2e |ode info|rmation.|
|00005ce0| 20 51 75 69 63 6b 44 72 | 61 77 20 47 58 20 70 72 | QuickDr|aw GX pr|
|00005cf0| 6f 76 69 64 65 73 20 61 | 20 73 6f 70 68 69 73 74 |ovides a| sophist|
|00005d00| 69 63 61 74 65 64 20 6d | 65 74 68 6f 64 20 66 6f |icated m|ethod fo|
|00005d10| 72 20 63 6f 6c 6f 72 20 | 73 70 65 63 69 66 69 63 |r color |specific|
|00005d20| 61 74 69 6f 6e 2c 20 77 | 68 69 63 68 20 61 6c 6c |ation, w|hich all|
|00005d30| 6f 77 73 20 79 6f 75 20 | 74 6f 20 73 70 65 63 69 |ows you |to speci|
|00005d40| 66 79 20 63 6f 6c 6f 72 | 73 20 69 6e 20 61 20 77 |fy color|s in a w|
|00005d50| 69 64 65 20 76 61 72 69 | 65 74 79 20 6f 66 20 63 |ide vari|ety of c|
|00005d60| 6f 6c 6f 72 20 73 70 61 | 63 65 73 2e 20 54 72 61 |olor spa|ces. Tra|
|00005d70| 6e 73 66 65 72 20 6d 6f | 64 65 73 20 61 72 65 20 |nsfer mo|des are |
|00005d80| 61 6e 20 65 6e 68 61 6e | 63 65 64 20 76 65 72 73 |an enhan|ced vers|
|00005d90| 69 6f 6e 20 6f 66 20 74 | 68 65 20 63 6f 70 79 20 |ion of t|he copy |
|00005da0| 6d 6f 64 65 73 20 6f 66 | 20 51 75 69 63 6b 44 72 |modes of| QuickDr|
|00005db0| 61 77 2e 20 54 68 65 20 | 73 65 63 74 69 6f 6e 20 |aw. The |section |
|00005dc0| d2 49 6e 6b 20 4f 62 6a | 65 63 74 73 20 61 6e 64 |.Ink Obj|ects and|
|00005dd0| 20 43 6f 6c 6f 72 73 2c | d3 20 6f 6e 20 70 61 67 | Colors,|. on pag|
|00005de0| 65 20 31 2d 31 32 2c 20 | 64 65 73 63 72 69 62 65 |e 1-12, |describe|
|00005df0| 73 20 69 6e 6b 20 6f 62 | 6a 65 63 74 73 20 69 6e |s ink ob|jects in|
|00005e00| 20 6d 6f 72 65 20 64 65 | 74 61 69 6c 2e 0d 4f 6e | more de|tail..On|
|00005e10| 65 20 6f 66 20 74 68 65 | 20 61 64 76 61 6e 74 61 |e of the| advanta|
|00005e20| 6e 67 65 73 20 6f 66 20 | 73 74 6f 72 69 6e 67 20 |nges of |storing |
|00005e30| 73 74 79 6c 65 20 61 6e | 64 20 69 6e 6b 20 69 6e |style an|d ink in|
|00005e40| 66 6f 72 6d 61 74 69 6f | 6e 20 73 65 70 61 72 61 |formatio|n separa|
|00005e50| 74 65 6c 79 20 66 72 6f | 6d 20 73 68 61 70 65 20 |tely fro|m shape |
|00005e60| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 69 73 20 74 |informat|ion is t|
|00005e70| 68 61 74 20 69 74 20 70 | 65 72 6d 69 74 73 20 73 |hat it p|ermits s|
|00005e80| 68 61 72 69 6e 67 d1 66 | 6f 72 20 65 78 61 6d 70 |haring.f|or examp|
|00005e90| 6c 65 2c 20 61 20 73 69 | 6e 67 6c 65 20 73 74 79 |le, a si|ngle sty|
|00005ea0| 6c 65 20 6f 62 6a 65 63 | 74 20 63 61 6e 20 62 65 |le objec|t can be|
|00005eb0| 20 73 68 61 72 65 64 20 | 61 6d 6f 6e 67 20 6d 61 | shared |among ma|
|00005ec0| 6e 79 20 73 68 61 70 65 | 20 6f 62 6a 65 63 74 73 |ny shape| objects|
|00005ed0| 2e 20 4f 62 6a 65 63 74 | 20 73 68 61 72 69 6e 67 |. Object| sharing|
|00005ee0| 20 6d 69 6e 69 6d 69 7a | 65 73 20 74 68 65 20 61 | minimiz|es the a|
|00005ef0| 6d 6f 75 6e 74 20 6f 66 | 20 6d 65 6d 6f 72 79 20 |mount of| memory |
|00005f00| 51 75 69 63 6b 44 72 61 | 77 20 47 58 20 6e 65 65 |QuickDra|w GX nee|
|00005f10| 64 73 20 74 6f 20 64 65 | 73 63 72 69 62 65 20 67 |ds to de|scribe g|
|00005f20| 72 61 70 68 69 63 20 73 | 68 61 70 65 73 2e 0d 57 |raphic s|hapes..W|
|00005f30| 68 65 6e 20 79 6f 75 20 | 66 69 72 73 74 20 63 72 |hen you |first cr|
|00005f40| 65 61 74 65 20 61 20 51 | 75 69 63 6b 44 72 61 77 |eate a Q|uickDraw|
|00005f50| 20 47 58 20 73 68 61 70 | 65 2c 20 74 68 65 20 6e | GX shap|e, the n|
|00005f60| 65 77 20 73 68 61 70 65 | 20 6f 62 6a 65 63 74 20 |ew shape| object |
|00005f70| 63 6f 6e 74 61 69 6e 73 | 20 61 20 72 65 66 65 72 |contains| a refer|
|00005f80| 65 6e 63 65 20 74 6f 20 | 74 68 65 20 73 79 73 74 |ence to |the syst|
|00005f90| 65 6d d5 73 20 64 65 66 | 61 75 6c 74 20 73 74 79 |em.s def|ault sty|
|00005fa0| 6c 65 20 6f 62 6a 65 63 | 74 20 61 6e 64 20 64 65 |le objec|t and de|
|00005fb0| 66 61 75 6c 74 20 69 6e | 6b 20 6f 62 6a 65 63 74 |fault in|k object|
|00005fc0| 2e 20 54 68 65 73 65 20 | 6f 62 6a 65 63 74 73 2c |. These |objects,|
|00005fd0| 20 77 68 69 63 68 20 61 | 72 65 20 74 79 70 69 63 | which a|re typic|
|00005fe0| 61 6c 6c 79 20 73 68 61 | 72 65 64 20 62 79 20 6d |ally sha|red by m|
|00005ff0| 61 6e 79 20 73 68 61 70 | 65 73 2c 20 63 6f 6e 74 |any shap|es, cont|
|00006000| 61 69 6e 20 64 65 66 61 | 75 6c 74 20 64 72 61 77 |ain defa|ult draw|
|00006010| 69 6e 67 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e d1 |ing info|rmation.|
|00006020| 66 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 74 68 65 |for exam|ple, the|
|00006030| 20 64 65 66 61 75 6c 74 | 20 70 65 6e 20 74 68 69 | default| pen thi|
|00006040| 63 6b 6e 65 73 73 20 69 | 73 20 31 2e 30 20 61 6e |ckness i|s 1.0 an|
|00006050| 64 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 63 6f |d the de|fault co|
|00006060| 6c 6f 72 20 69 73 20 62 | 6c 61 63 6b 2e 20 49 66 |lor is b|lack. If|
|00006070| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 63 68 61 | you wan|t to cha|
|00006080| 6e 67 65 20 74 68 65 20 | 73 79 73 74 65 6d d5 73 |nge the |system.s|
|00006090| 20 64 65 66 61 75 6c 74 | 20 73 74 79 6c 69 73 74 | default| stylist|
|000060a0| 69 63 20 61 6e 64 20 63 | 6f 6c 6f 72 20 62 65 68 |ic and c|olor beh|
|000060b0| 61 76 69 6f 72 2c 20 79 | 6f 75 20 6f 6e 6c 79 20 |avior, y|ou only |
|000060c0| 6e 65 65 64 20 74 6f 20 | 63 68 61 6e 67 65 20 74 |need to |change t|
|000060d0| 68 65 20 70 72 6f 70 65 | 72 74 69 65 73 20 6f 66 |he prope|rties of|
|000060e0| 20 74 68 65 73 65 20 64 | 65 66 61 75 6c 74 20 6f | these d|efault o|
|000060f0| 62 6a 65 63 74 73 2e 0d | 51 75 69 63 6b 44 72 61 |bjects..|QuickDra|
|00006100| 77 20 47 58 20 70 72 6f | 76 69 64 65 73 20 61 20 |w GX pro|vides a |
|00006110| 67 72 65 61 74 20 6e 75 | 6d 62 65 72 20 6f 66 20 |great nu|mber of |
|00006120| 66 75 6e 63 74 69 6f 6e | 73 20 74 68 61 74 20 61 |function|s that a|
|00006130| 6c 6c 6f 77 20 79 6f 75 | 20 74 6f 20 63 75 73 74 |llow you| to cust|
|00006140| 6f 6d 69 7a 65 20 74 68 | 65 20 73 74 79 6c 65 20 |omize th|e style |
|00006150| 61 6e 64 20 69 6e 6b 20 | 70 72 6f 70 65 72 74 69 |and ink |properti|
|00006160| 65 73 20 6f 66 20 61 20 | 73 68 61 70 65 2e 20 46 |es of a |shape. F|
|00006170| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 69 66 20 79 |or examp|le, if y|
|00006180| 6f 75 20 77 61 6e 74 20 | 74 6f 20 63 68 61 6e 67 |ou want |to chang|
|00006190| 65 20 74 68 65 20 70 65 | 6e 20 74 68 69 63 6b 6e |e the pe|n thickn|
|000061a0| 65 73 73 20 70 72 6f 70 | 65 72 74 79 20 6f 66 20 |ess prop|erty of |
|000061b0| 61 20 70 61 72 74 69 63 | 75 6c 61 72 20 73 68 61 |a partic|ular sha|
|000061c0| 70 65 2c 20 79 6f 75 20 | 75 73 65 20 74 68 65 20 |pe, you |use the |
|000061d0| 47 58 53 65 74 53 68 61 | 70 65 50 65 6e 20 66 75 |GXSetSha|pePen fu|
|000061e0| 6e 63 74 69 6f 6e 2e 20 | 49 66 20 74 68 65 20 73 |nction. |If the s|
|000061f0| 68 61 70 65 20 69 73 20 | 63 75 72 72 65 6e 74 6c |hape is |currentl|
|00006200| 79 20 73 68 61 72 69 6e | 67 20 69 74 73 20 73 74 |y sharin|g its st|
|00006210| 79 6c 65 20 6f 62 6a 65 | 63 74 20 77 69 74 68 20 |yle obje|ct with |
|00006220| 6f 74 68 65 72 20 73 68 | 61 70 65 73 2c 20 51 75 |other sh|apes, Qu|
|00006230| 69 63 6b 44 72 61 77 20 | 47 58 20 74 79 70 69 63 |ickDraw |GX typic|
|00006240| 61 6c 6c 79 20 63 72 65 | 61 74 65 73 20 61 20 63 |ally cre|ates a c|
|00006250| 6f 70 79 20 6f 66 20 74 | 68 65 20 73 68 61 72 65 |opy of t|he share|
|00006260| 64 20 73 74 79 6c 65 20 | 6f 62 6a 65 63 74 2c 20 |d style |object, |
|00006270| 61 73 73 69 67 6e 73 20 | 69 74 20 74 68 65 20 6e |assigns |it the n|
|00006280| 65 77 20 70 65 6e 20 74 | 68 69 63 6b 6e 65 73 73 |ew pen t|hickness|
|00006290| 2c 20 61 6e 64 20 61 73 | 73 6f 63 69 61 74 65 73 |, and as|sociates|
|000062a0| 20 69 74 20 77 69 74 68 | 20 74 68 65 20 73 68 61 | it with| the sha|
|000062b0| 70 65 2e 0d 54 68 65 20 | 6e 65 78 74 20 74 77 6f |pe..The |next two|
|000062c0| 20 73 65 63 74 69 6f 6e | 73 20 65 78 61 6d 69 6e | section|s examin|
|000062d0| 65 20 74 68 65 20 70 72 | 6f 70 65 72 74 69 65 73 |e the pr|operties|
|000062e0| 20 6f 66 20 74 68 65 20 | 73 74 79 6c 65 20 61 6e | of the |style an|
|000062f0| 64 20 69 6e 6b 20 6f 62 | 6a 65 63 74 73 2e 0d 53 |d ink ob|jects..S|
|00006300| 74 79 6c 65 20 4f 62 6a | 65 63 74 73 0d 0d 54 68 |tyle Obj|ects..Th|
|00006310| 65 20 73 74 79 6c 65 20 | 6f 62 6a 65 63 74 20 63 |e style |object c|
|00006320| 6f 6e 74 61 69 6e 73 20 | 69 6e 66 6f 72 6d 61 74 |ontains |informat|
|00006330| 69 6f 6e 20 61 62 6f 75 | 74 20 73 74 79 6c 69 73 |ion abou|t stylis|
|00006340| 74 69 63 20 76 61 72 69 | 61 74 69 6f 6e 73 20 61 |tic vari|ations a|
|00006350| 70 70 6c 69 63 61 62 6c | 65 20 74 6f 20 62 6f 74 |pplicabl|e to bot|
|00006360| 68 20 67 65 6f 6d 65 74 | 72 69 63 20 73 68 61 70 |h geomet|ric shap|
|00006370| 65 73 20 61 6e 64 20 74 | 79 70 6f 67 72 61 70 68 |es and t|ypograph|
|00006380| 69 63 20 73 68 61 70 65 | 73 2e 0d 46 69 67 75 72 |ic shape|s..Figur|
|00006390| 65 20 31 2d 31 20 64 65 | 70 69 63 74 73 20 61 20 |e 1-1 de|picts a |
|000063a0| 73 74 79 6c 65 20 6f 62 | 6a 65 63 74 20 61 6e 64 |style ob|ject and|
|000063b0| 20 73 68 6f 77 73 20 68 | 6f 77 20 63 65 72 74 61 | shows h|ow certa|
|000063c0| 69 6e 20 73 74 79 6c 65 | 20 70 72 6f 70 65 72 74 |in style| propert|
|000063d0| 69 65 73 20 61 66 66 65 | 63 74 20 73 68 61 70 65 |ies affe|ct shape|
|000063e0| 20 64 72 61 77 69 6e 67 | 2e 0d 46 69 67 75 72 65 | drawing|..Figure|
|000063f0| 20 31 2d 32 09 54 68 65 | 20 73 74 79 6c 65 20 6f | 1-2.The| style o|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.